routes: cleanup attachment routes

This commit is contained in:
Pierre de La Morinerie 2020-04-08 11:57:06 +02:00
parent 473ed00b6c
commit 8ceb555941

View file

@ -124,8 +124,7 @@ Rails.application.routes.draw do
put 'piece_justificative/:champ_id', to: 'piece_justificative#update', as: :piece_justificative
end
get 'attachments/:id', to: 'attachments#show', as: :attachment
delete 'attachments/:id', to: 'attachments#destroy'
resources :attachments, only: [:show, :destroy]
get "patron" => "root#patron"
get "accessibilite" => "root#accessibilite"