A platform for community discussion. Free, open, simple.
# 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