Update 404 to show only on dashboard and api

This commit is contained in:
Joseph Cohen
2014-12-31 19:10:19 -06:00
parent 78f69f38ef
commit 9501ffd1ba
3 changed files with 17 additions and 6 deletions

View File

@@ -57,9 +57,13 @@ API::error(function (\Illuminate\Database\Eloquent\ModelNotFoundException $excep
});
App::missing(function ($exception) {
return Response::view('errors.404', [
'pageTitle' => 'That page went missing!'
], 404);
if (Request::is('dashboard*') or Request::is('api*')) {
return Response::view('errors.404', [
'pageTitle' => 'That page went missing!',
], 404);
}
return Redirect::route('status-page');
});
/*