From 2a9e27b0aaa6e11ab11b452166f981a440729979 Mon Sep 17 00:00:00 2001 From: xhagrg Date: Wed, 19 Apr 2017 09:46:32 -0500 Subject: [PATCH] Controller update to add or remove song. --- config/routes.rb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 1bcf2d8..a41f27a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -13,7 +13,17 @@ namespace :v1 do resources :users, only: [:index, :show] resources :invitations - resources :playlists + resources :playlists do + member do + post :remove_song + end + collection do + post :song_count + end + end end end + + get 'playlists/:id', to: 'home#index' + get 'playlists/', to: 'home#index' end