Skip to content

Commit

Permalink
Merge pull request #141 from etiennebarrie/remove-deprecated-calls-to…
Browse files Browse the repository at this point in the history
…-router

Remove deprecated calls to routing mapper
  • Loading branch information
stevenharman authored Aug 8, 2024
2 parents 0c720b4 + 7491cbc commit 9e89fa1
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 9e89fa1

Please sign in to comment.