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:
@@ -133,7 +133,6 @@ Route::group([
|
|||||||
'prefix' => 'v1',
|
'prefix' => 'v1',
|
||||||
], function () {
|
], function () {
|
||||||
Route::post('/sentinel/push', function () {
|
Route::post('/sentinel/push', function () {
|
||||||
return response()->json(['message' => 'temporary unavailable'], 503);
|
|
||||||
$token = request()->header('Authorization');
|
$token = request()->header('Authorization');
|
||||||
if (! $token) {
|
if (! $token) {
|
||||||
return response()->json(['message' => 'Unauthorized'], 401);
|
return response()->json(['message' => 'Unauthorized'], 401);
|
||||||
|
|||||||
Reference in New Issue
Block a user