改进 API 响应

This commit is contained in:
iVampireSP.com 2023-01-18 00:06:57 +08:00
parent c549a4dcae
commit 036a8d783f
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -114,7 +114,7 @@ public function updated($message = 'Updated'): JsonResponse
public function deleted($message = 'Deleted'): JsonResponse
{
return $this->success($message);
return $this->success($message, 204);
}
public function notAllowed($message = 'Not allowed'): JsonResponse