Registration for Events

This commit is contained in:
Stella Rouzi 2016-04-22 18:18:46 +03:00
parent f188fd5575
commit 01ec43e53a
35 changed files with 522 additions and 46 deletions

View file

@ -53,6 +53,8 @@ Osem::Application.routes.draw do
resources :difficulty_levels
resources :events do
member do
patch :toggle_attendance
get :registrations
post :comment
patch :accept
patch :confirm
@ -99,7 +101,9 @@ Osem::Application.routes.draw do
get 'commercials/render_commercial' => 'commercials#render_commercial'
resources :commercials, only: [:create, :update, :destroy]
member do
get :registrations
patch '/withdraw' => 'proposal#withdraw'
get :registrations
patch '/confirm' => 'proposal#confirm'
patch '/restart' => 'proposal#restart'
end