public IActionResult GetStatus([FromServices] MiniAuth auth, [FromServices] AppHealth appStatus) { if (auth.Validate(Request).Status != ResponseStatus.Succeeded) { return(Unauthorized()); } return(new JsonHttpResponse(appStatus)); }
public RequestController(MiniAuth auth, Users users) { _auth = auth; _users = users; }