server state cleanup
This commit is contained in:
@@ -50,9 +50,7 @@ namespace AyaNova.Api.Controllers
|
||||
public ActionResult GetRoles([FromQuery] bool AsJson = false)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
{
|
||||
return StatusCode(503, new ApiErrorResponse(ApiErrorCode.API_CLOSED, null, serverState.Reason));
|
||||
}
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
|
||||
//as json for client end of things
|
||||
if (AsJson)
|
||||
|
||||
Reference in New Issue
Block a user