Skip to content

Commit e629130

Browse files
committed
route to: attachments/show as :attachment
1 parent d32f366 commit e629130

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/routes.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
Rails.application.routes.draw do
2-
get "attachments/show"
32
resources :messages
43
get '/:list_name/:list_seq', to: 'messages#show'
54
get '/:list_name/', to: 'messages#index'
65

6+
get '/attachments/:encoded_key/*filename' => 'attachments#show', as: :attachment
7+
78
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
89

910
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.

0 commit comments

Comments
 (0)