mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-24 12:54:25 +08:00
16 lines
527 B
Ruby
Vendored
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" }
|