mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Add fallback routes to web and api
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
2018-10-30 DariusIII
|
||||
* Chg: Add fallback routes to web and api
|
||||
* Chg: Update messages output in ProcessReleases
|
||||
* Chg: Update ColorCLI output, remove added newline string (\n)
|
||||
* Chg: Update phpunit/php-token-stream to version 3.0.1
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
@extends ('errors.layout')
|
||||
|
||||
@section ('content')
|
||||
<h3>Sorry {{ auth()->user()->username }} ! This page doesn't exist.</h3>
|
||||
<br>
|
||||
<h4>Browse back and try again.</h4>
|
||||
@stop
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
@@ -347,3 +347,7 @@ Route::group(['middleware' => ['role_or_permission:Admin|Moderator|edit release'
|
||||
Route::get('release-edit', 'ReleasesController@edit');
|
||||
Route::post('release-edit', 'ReleasesController@edit');
|
||||
});
|
||||
|
||||
Route::fallback(function(){
|
||||
return response()->view('notFound', [], 404);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user