mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-01 15:59:24 +08:00
22 lines
906 B
Ruby
22 lines
906 B
Ruby
# 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
|