mirror of
https://github.com/discourse/discourse-solved.git
synced 2025-04-30 19:24:51 +00:00
This commit autoloads plugin files, and also extracts features into their own modules. - `plugin.rb` is smaller - external plugins like discourse-automation and discourse-assign have their own entrypoints - solved filters as well
9 lines
238 B
Ruby
9 lines
238 B
Ruby
# frozen_string_literal: true
|
|
|
|
DiscourseSolved::Engine.routes.draw do
|
|
post "/accept" => "answer#accept"
|
|
post "/unaccept" => "answer#unaccept"
|
|
end
|
|
|
|
Discourse::Application.routes.draw { mount ::DiscourseSolved::Engine, at: "solution" }
|