mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
Unify API keys and web hooks into a single admin nav header.
This commit is contained in:
@ -52,7 +52,7 @@ ApiKey.reopenClass({
|
||||
@returns {Promise} a promise that resolves to the array of `ApiKey` instances
|
||||
**/
|
||||
find: function() {
|
||||
return ajax("/admin/api").then(function(keys) {
|
||||
return ajax("/admin/api/keys").then(function(keys) {
|
||||
return keys.map(function (key) {
|
||||
return ApiKey.create(key);
|
||||
});
|
||||
|
Reference in New Issue
Block a user