mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-21 09:12:14 +00:00
api refactoring
This commit is contained in:
@@ -16,7 +16,10 @@ class ProtectUploadRequestRoutes
|
||||
|
||||
// Check if upload request is active
|
||||
if (! in_array($uploadRequest->status, ['active', 'filling'])) {
|
||||
return response('Gone', 410);
|
||||
return response()->json([
|
||||
'type' => 'gone',
|
||||
'message' => 'The file request is not active anymore',
|
||||
], 410);
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
|
||||
Reference in New Issue
Block a user