Reauth endpoint
This commit is contained in:
@@ -27,7 +27,7 @@ class ApiError extends Exception
|
||||
]), 400);
|
||||
}
|
||||
|
||||
public static function unauthorized(string $message)
|
||||
public static function notAllowed(string $message)
|
||||
{
|
||||
return new ApiError(json_encode([
|
||||
"code" => "NotAllowed",
|
||||
@@ -35,6 +35,14 @@ class ApiError extends Exception
|
||||
]), 401);
|
||||
}
|
||||
|
||||
public static function unauthorized(string $message)
|
||||
{
|
||||
return new ApiError(json_encode([
|
||||
"code" => "Unauthorized",
|
||||
"message" => $message,
|
||||
]), 401);
|
||||
}
|
||||
|
||||
public static function notFound(string $entity)
|
||||
{
|
||||
return new ApiError(json_encode([
|
||||
|
||||
Reference in New Issue
Block a user