Ensure AR not found errors are handled in API

This commit is contained in:
Thibault Jouan
2015-05-01 20:51:40 +00:00
parent cd73a588b0
commit 5b9d36cb39
4 changed files with 14 additions and 9 deletions

View File

@@ -8,7 +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
match '*all', to: 'application#not_found', via: :all
end
resources :playlists