mirror of
https://github.com/discourse/discourse-rewind.git
synced 2025-12-13 10:43:34 +00:00
9 lines
302 B
Ruby
9 lines
302 B
Ruby
# frozen_string_literal: true
|
|
|
|
DiscourseRewind::Engine.routes.draw do
|
|
get "/rewinds" => "rewinds#index", :constraints => { format: :json }
|
|
get "/rewinds/:index" => "rewinds#show", :constraints => { index: /\d+/ }
|
|
end
|
|
|
|
Discourse::Application.routes.draw { mount ::DiscourseRewind::Engine, at: "/" }
|