discourse/plugins/discourse-post-voting/config/routes.rb
2025-07-15 16:38:05 +02:00

16 lines
527 B
Ruby
Vendored

# frozen_string_literal: true
PostVoting::Engine.routes.draw do
resource :vote
get "voters" => "votes#voters"
get "comments" => "comments#load_more_comments"
post "comments" => "comments#create"
delete "comments" => "comments#destroy"
put "comments" => "comments#update"
put "comments/flag" => "comments#flag"
post "vote/comment" => "votes#create_comment_vote"
delete "vote/comment" => "votes#destroy_comment_vote"
end
Discourse::Application.routes.append { mount ::PostVoting::Engine, at: "post_voting" }