改进 500 规则

This commit is contained in:
iVampireSP.com 2022-12-19 14:13:12 +08:00
parent b080457e54
commit 504dd963bd
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -20,7 +20,7 @@ public function moduleResponse($response, int $status = 200): JsonResponse
404 => $this->notFound($response),
405 => $this->methodNotAllowed(),
429 => $this->tooManyRequests(),
500 => $this->serverError(),
500 => $this->serverError($response),
default => response()->json($response, $status),
};