Commit 30246f1d authored by Douwe Maan's avatar Douwe Maan

Merge branch 'rs-rails-routes' into 'master'

Add special cases for built-in Rails routes in development



See merge request !3369
parents 33b1bbba 19a2adfa
...@@ -16,6 +16,18 @@ Rails.application.routes.draw do ...@@ -16,6 +16,18 @@ Rails.application.routes.draw do
end end
end end
# 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
if Rails.env.development?
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'
end
namespace :ci do namespace :ci do
# CI API # CI API
Ci::API::API.logger Rails.logger Ci::API::API.logger Rails.logger
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment