FIX: Permalink route matcher should always be last.

This commit is contained in:
Guo Xiang Tan 2018-06-06 14:55:22 +08:00
parent a4e6662833
commit a50cd8675a
1 changed files with 2 additions and 2 deletions

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