Handle 404 not found error in API

This commit is contained in:
Thibault Jouan
2015-05-01 19:56:19 +00:00
parent b3cfa88bb9
commit cd73a588b0
3 changed files with 16 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ Rails.application.routes.draw do
resources :sessions, only: :create
resources :sounds, only: :show
resources :tracks, only: :index
match '*all', to: 'errors#not_found', via: :all
end
resources :playlists