mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01:00
Handle fallback routes from different route group
This commit is contained in:
parent
241cb02a86
commit
4cc9ca2748
@ -111,6 +111,11 @@ class BaseController extends Controller
|
||||
'message' => 'Nothing to see here!'], 404);
|
||||
}
|
||||
|
||||
public function notFoundClient()
|
||||
{
|
||||
return abort(404);
|
||||
}
|
||||
|
||||
protected function errorResponse($response, $httpErrorCode = 400)
|
||||
{
|
||||
$error['error'] = $response;
|
||||
|
@ -11,4 +11,6 @@ Route::group(['middleware' => ['auth:contact'], 'prefix' => 'client', 'as' => 'c
|
||||
|
||||
Route::get('logout', 'Auth\ContactLoginController@logout')->name('logout');
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Route::fallback('BaseController@notFoundClient');
|
Loading…
Reference in New Issue
Block a user