mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Change slugs/generate endpoint from GET to POST (#19984)
Followup on feedback on PR #19928 https://github.com/discourse/discourse/pull/19928#discussion_r1083687839, it makes more sense to have this endpoint as a POST rather than a GET.
This commit is contained in:
@@ -1064,7 +1064,7 @@ Discourse::Application.routes.draw do
|
||||
|
||||
resources :associated_groups, only: %i[index], constraints: AdminConstraint.new
|
||||
|
||||
get "slugs/generate", to: "slugs#generate"
|
||||
post "slugs", to: "slugs#generate"
|
||||
|
||||
# aliases so old API code works
|
||||
delete "admin/groups/:id/members" => "groups#remove_member", :constraints => AdminConstraint.new
|
||||
|
||||
Reference in New Issue
Block a user