api refactoring

This commit is contained in:
Čarodej
2022-05-11 09:19:55 +02:00
parent d2371e667f
commit c0e431b384
76 changed files with 1142 additions and 690 deletions

View File

@@ -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);