mirror of
https://github.com/discourse/discourse.git
synced 2025-04-28 10:44:34 +08:00
DEV: mount DiscourseDev
engine routes at /dev
path. (#12376)
This commit is contained in:
parent
361875b323
commit
1c672c97d3
@ -114,7 +114,7 @@ GEM
|
|||||||
railties (>= 3.1)
|
railties (>= 3.1)
|
||||||
discourse-ember-source (3.12.2.3)
|
discourse-ember-source (3.12.2.3)
|
||||||
discourse-fonts (0.0.8)
|
discourse-fonts (0.0.8)
|
||||||
discourse_dev (0.0.4)
|
discourse_dev (0.0.5)
|
||||||
faker (~> 2.16)
|
faker (~> 2.16)
|
||||||
discourse_image_optim (0.26.2)
|
discourse_image_optim (0.26.2)
|
||||||
exifr (~> 1.2, >= 1.2.2)
|
exifr (~> 1.2, >= 1.2.2)
|
||||||
|
@ -963,6 +963,10 @@ Discourse::Application.routes.draw do
|
|||||||
post "/do-not-disturb" => "do_not_disturb#create"
|
post "/do-not-disturb" => "do_not_disturb#create"
|
||||||
delete "/do-not-disturb" => "do_not_disturb#destroy"
|
delete "/do-not-disturb" => "do_not_disturb#destroy"
|
||||||
|
|
||||||
|
if Rails.env.development?
|
||||||
|
mount DiscourseDev::Engine => "/dev/"
|
||||||
|
end
|
||||||
|
|
||||||
get "*url", to: 'permalinks#show', constraints: PermalinkConstraint.new
|
get "*url", to: 'permalinks#show', constraints: PermalinkConstraint.new
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user