FIX: Permalink route matcher should always be last.

This commit is contained in:
Guo Xiang Tan 2018-06-06 14:55:22 +08:00 committed by Neil Lalonde
parent a74d62d618
commit b7865bac27

View File

@ -803,9 +803,9 @@ Discourse::Application.routes.draw do
get "/qunit" => "qunit#index"
end
get "*url", to: 'permalinks#show', constraints: PermalinkConstraint.new
post "/push_notifications/subscribe" => "push_notification#subscribe"
post "/push_notifications/unsubscribe" => "push_notification#unsubscribe"
get "*url", to: 'permalinks#show', constraints: PermalinkConstraint.new
end