summaryrefslogtreecommitdiff
path: root/config/routes/development.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-05 18:43:47 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-10-05 18:43:47 +0300
commitb9e259ddedd31eb600b42d414891e533134ad315 (patch)
tree88a4d779f1923643b51a1867a5d8062000e2da44 /config/routes/development.rb
parentba4c392721bc5d784b5d71a5ea41ee83edebc923 (diff)
downloadgitlab-ce-b9e259ddedd31eb600b42d414891e533134ad315.tar.gz
Cleanup config/routes.rb even further by extracting more routes into separate filesdz-more-route-cleanup
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'config/routes/development.rb')
-rw-r--r--config/routes/development.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/config/routes/development.rb b/config/routes/development.rb
new file mode 100644
index 00000000000..9b2b47c6a21
--- /dev/null
+++ b/config/routes/development.rb
@@ -0,0 +1,13 @@
+if Rails.env.development?
+ # Make the built-in Rails routes available in development, otherwise they'd
+ # get swallowed by the `namespace/project` route matcher below.
+ #
+ # See https://git.io/va79N
+ get '/rails/mailers' => 'rails/mailers#index'
+ get '/rails/mailers/:path' => 'rails/mailers#preview'
+ get '/rails/info/properties' => 'rails/info#properties'
+ get '/rails/info/routes' => 'rails/info#routes'
+ get '/rails/info' => 'rails/info#index'
+
+ mount LetterOpenerWeb::Engine, at: '/rails/letter_opener'
+end