0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-08 17:53:55 +08:00
discourse/plugins/discourse-reactions/config/routes.rb

22 lines
906 B
Ruby
Vendored

# frozen_string_literal: true
DiscourseReactions::Engine.routes.draw do
get "/discourse-reactions/custom-reactions" => "custom_reactions#index",
:constraints => {
format: :json,
}
put "/discourse-reactions/posts/:post_id/custom-reactions/:reaction/toggle" =>
"custom_reactions#toggle",
:constraints => {
format: :json,
}
get "/discourse-reactions/posts/reactions" => "custom_reactions#reactions_given",
:as => "reactions_given"
get "/discourse-reactions/posts/reactions-received" => "custom_reactions#reactions_received",
:as => "reactions_received"
get "/discourse-reactions/posts/:id/reactions-users-list" =>
"custom_reactions#reactions_users_list",
:as => "reactions_users_list"
get "/discourse-reactions/posts/:id/reactions-users" => "custom_reactions#post_reactions_users",
:as => "post_reactions_users"
end