Add fallback routes to web and api

This commit is contained in:
DariusIII
2018-10-30 13:03:55 +01:00
parent 004137d473
commit e71e9bc8b3
4 changed files with 16 additions and 0 deletions
+4
View File
@@ -34,3 +34,7 @@ Route::group(['prefix' => 'v2', 'namespace' => 'Api', 'middleware' => ['auth:api
Route::get('details', 'ApiV2Controller@details');
Route::post('details', 'ApiV2Controller@details');
});
Route::fallback(function(){
return response()->json(['message' => 'Not Found!'], 404);
});