Skip to content

Commit

Permalink
Remove deprecated calls to routing mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebarrie committed Aug 7, 2024
1 parent 0c720b4 commit 7491cbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# frozen_string_literal: true

LetterOpenerWeb::Engine.routes.draw do
get '/' => 'letters#index', as: :letters
post 'clear' => 'letters#clear', as: :clear_letters
get ':id(/:style)' => 'letters#show', as: :letter
post ':id/delete' => 'letters#destroy', as: :delete_letter
get ':id/attachments/:file' => 'letters#attachment', constraints: { file: %r{[^/]+} }
get '/', to: 'letters#index', as: :letters
post 'clear', to: 'letters#clear', as: :clear_letters
get ':id(/:style)', to: 'letters#show', as: :letter
post ':id/delete', to: 'letters#destroy', as: :delete_letter
get ':id/attachments/:file', to: 'letters#attachment', constraints: { file: %r{[^/]+} }
end
2 changes: 1 addition & 1 deletion spec/dummy/config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

Rails.application.routes.draw do
mount LetterOpenerWeb::Engine => '/letter_opener_web'
mount LetterOpenerWeb::Engine, at: '/letter_opener_web'
end

0 comments on commit 7491cbc

Please sign in to comment.