mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 11:19:51 +00:00
DEV: Don't expose wizard qunit route in production.
This commit is contained in:
parent
6d9d904df5
commit
a19780d7a6
@ -59,7 +59,6 @@ Discourse::Application.routes.draw do
|
|||||||
get "srv/status" => "forums#status"
|
get "srv/status" => "forums#status"
|
||||||
|
|
||||||
get "wizard" => "wizard#index"
|
get "wizard" => "wizard#index"
|
||||||
get "wizard/qunit" => "wizard#qunit"
|
|
||||||
get 'wizard/steps' => 'steps#index'
|
get 'wizard/steps' => 'steps#index'
|
||||||
get 'wizard/steps/:id' => "wizard#index"
|
get 'wizard/steps/:id' => "wizard#index"
|
||||||
put 'wizard/steps/:id' => "steps#update"
|
put 'wizard/steps/:id' => "steps#update"
|
||||||
@ -823,8 +822,9 @@ Discourse::Application.routes.draw do
|
|||||||
|
|
||||||
get "/themes/assets/:ids" => "themes#assets"
|
get "/themes/assets/:ids" => "themes#assets"
|
||||||
|
|
||||||
if Rails.env == "test" || Rails.env == "development"
|
unless Rails.env.production?
|
||||||
get "/qunit" => "qunit#index"
|
get "/qunit" => "qunit#index"
|
||||||
|
get "/wizard/qunit" => "wizard#qunit"
|
||||||
end
|
end
|
||||||
|
|
||||||
post "/push_notifications/subscribe" => "push_notification#subscribe"
|
post "/push_notifications/subscribe" => "push_notification#subscribe"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user