mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
FEATURE: created edit and delete flags (#27484)
Allow admins to create edit and delete flags.
This commit is contained in:

committed by
GitHub

parent
a86590ffd6
commit
c3fadc7330
@ -386,9 +386,10 @@ Discourse::Application.routes.draw do
|
||||
end
|
||||
end
|
||||
namespace :config, constraints: StaffConstraint.new do
|
||||
resources :flags, only: %i[index] do
|
||||
resources :flags, only: %i[index new create update destroy] do
|
||||
put "toggle"
|
||||
put "reorder/:direction" => "flags#reorder"
|
||||
member { get "/" => "flags#edit" }
|
||||
end
|
||||
|
||||
resources :about, constraints: AdminConstraint.new, only: %i[index] do
|
||||
|
Reference in New Issue
Block a user