Exemplo n.º 1
0
        public IActionResult GetStatus([FromServices] MiniAuth auth, [FromServices] AppHealth appStatus)
        {
            if (auth.Validate(Request).Status != ResponseStatus.Succeeded)
            {
                return(Unauthorized());
            }

            return(new JsonHttpResponse(appStatus));
        }
Exemplo n.º 2
0
 public RequestController(MiniAuth auth, Users users)
 {
     _auth  = auth;
     _users = users;
 }