Rails.application.routes.draw do
root 'sound_treks#index'

get 'session/index'

resources :locations do
  resources :sound_treks, except: [:new]
end

resources :sound_treks, only: [:show]

get 'auth/spotify/callback', to: "sessions#create"
delete 'sign_out', to: "sessions#destroy", as: 'sign_out'

resources :users

resources :playlists, only: [:new, :create, :show]

end

Rails.application.routes.draw do
root 'sound_treks#index'

get 'session/index'

resources :locations do
  resources :sound_treks, except: [:new]
end

resources :sound_treks, only: [:show]

get 'soundtreks.herokuapp.com/callback', to: "sessions#create"
delete 'sign_out', to: "sessions#destroy", as: 'sign_out'

resources :users

resources :playlists, only: [:new, :create, :show]

end

Edit callback for Spotify login
Edit callback for Spotify login
