mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
DEV: These routes don't exist anymore (#9823)
This commit is contained in:
parent
a239900522
commit
52228b1fa6
|
@ -77,12 +77,6 @@ const AdminUser = User.extend({
|
|||
});
|
||||
},
|
||||
|
||||
revokeApiKey() {
|
||||
return ajax(`/admin/users/${this.id}/revoke_api_key`, {
|
||||
type: "DELETE"
|
||||
}).then(() => this.set("api_key", null));
|
||||
},
|
||||
|
||||
deleteAllPosts() {
|
||||
let deletedPosts = 0;
|
||||
const user = this;
|
||||
|
|
|
@ -120,7 +120,6 @@ Discourse::Application.routes.draw do
|
|||
put "unsuspend"
|
||||
put "revoke_admin", constraints: AdminConstraint.new
|
||||
put "grant_admin", constraints: AdminConstraint.new
|
||||
post "generate_api_key", constraints: AdminConstraint.new
|
||||
put "revoke_moderation", constraints: AdminConstraint.new
|
||||
put "grant_moderation", constraints: AdminConstraint.new
|
||||
put "approve"
|
||||
|
|
Loading…
Reference in New Issue
Block a user