Add /conferences/:conference_id/program/proposal/:id

We changed this route (because of renaming proposal to proposals in):
daf1f805bd

Keep the old route for compatibility.

Fixes https://github.com/openSUSE/osem/issues/2330
This commit is contained in:
Ana María Martínez Gómez 2019-02-21 15:57:20 +01:00 committed by Henne Vogelsang
parent ab3b50ac4f
commit e03f9dc5fe

View file

@ -170,6 +170,7 @@ Osem::Application.routes.draw do
end
end
resource :program, only: [] do
get 'proposal/:id', to: 'proposals#show' # For backward compatibility
resources :proposals, except: :destroy do
get 'commercials/render_commercial' => 'commercials#render_commercial'
resources :commercials, only: [:create, :update, :destroy]