discourse/plugins/discourse-solved/config/routes.rb
Jarek Radosz e372355fd0
DEV: Clean up scope resolution operators in plugins (#34979)
Co-authored-by: Loïc Guitaut <loic@discourse.org>
2025-09-30 14:36:34 +02:00

10 lines
281 B
Ruby

# frozen_string_literal: true
DiscourseSolved::Engine.routes.draw do
post "/accept" => "answer#accept"
post "/unaccept" => "answer#unaccept"
get "/by_user" => "solved_topics#by_user"
end
Discourse::Application.routes.draw { mount DiscourseSolved::Engine, at: "solution" }