mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 19:10:40 +00:00
share routes refactoring
This commit is contained in:
@@ -51,9 +51,12 @@ class Handler extends ExceptionHandler
|
||||
{
|
||||
if ($exception instanceof ModelNotFoundException) {
|
||||
if (in_array('application/json', $request->getAcceptableContentTypes())) {
|
||||
// Get ids
|
||||
$ids = implode(', ', $exception->getIds());
|
||||
|
||||
return response()->json([
|
||||
'type' => 'error',
|
||||
'message' => "We couldn't find your requested item.",
|
||||
'message' => "We couldn't find the resource you requested with id $ids",
|
||||
], 404);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ class RouteServiceProvider extends ServiceProvider
|
||||
->middleware('api')
|
||||
->group(base_path('routes/api.php'));
|
||||
|
||||
Route::prefix('api')
|
||||
Route::prefix('api/sharing')
|
||||
->middleware('api')
|
||||
->group(base_path('routes/share.php'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user