summaryrefslogtreecommitdiff
path: root/config/routes/development.rb
blob: 4ea53e14120f497c09931496fcd50ab6c4b70ccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

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