-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from etiennebarrie/remove-deprecated-calls-to…
…-router Remove deprecated calls to routing mapper
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |