Skip to content

Commit

Permalink
Controller update to add or remove song.
Browse files Browse the repository at this point in the history
  • Loading branch information
xhagrg committed Apr 19, 2017
1 parent 6c867b2 commit 2a9e27b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2a9e27b

Please sign in to comment.