fix: update response message for sentinel push route

- Removed the temporary unavailability message from the /sentinel/push route to allow for proper handling of authorization without misleading responses.
- This change improves the clarity of the API response when the authorization token is not provided.
This commit is contained in:
Andras Bacsai
2025-01-10 20:27:49 +01:00
parent a396d51452
commit 70db50def6

View File

@@ -133,7 +133,6 @@ Route::group([
'prefix' => 'v1',
], function () {
Route::post('/sentinel/push', function () {
return response()->json(['message' => 'temporary unavailable'], 503);
$token = request()->header('Authorization');
if (! $token) {
return response()->json(['message' => 'Unauthorized'], 401);