move subscribe to its own controller, add authorization, test subscribe/unsubscribe

This commit is contained in:
Stella 2014-10-31 22:45:15 +02:00 committed by Stella Rouzi
parent 97bf86454e
commit 3be200abcc
7 changed files with 92 additions and 43 deletions

View file

@ -109,6 +109,7 @@ Osem::Application.routes.draw do
resource :conference_registrations, path: 'register'
resources :tickets, only: [:index]
resources :ticket_purchases, only: [:create, :destroy]
resource :subscriptions, only: [:create, :destroy]
resource :schedule, only: [] do
get '/' => 'schedule#index'
@ -116,8 +117,6 @@ Osem::Application.routes.draw do
member do
get 'gallery_photos'
patch 'subscription' => 'conference#subscribe'
delete 'subscription' => 'conference#unsubscribe'
end
end