public Async.Task <HttpResponseData> Run( [HttpTrigger( AuthorizationLevel.Anonymous, "GET", "POST", Route = "agents/registration")] HttpRequestData req) => _auth.CallIfAgent( req, r => r.Method switch { "GET" => Get(r), "POST" => Post(r),
public Async.Task <HttpResponseData> Run( [HttpTrigger(AuthorizationLevel.Anonymous, "GET", "DELETE", Route = "agents/commands")] HttpRequestData req) => _auth.CallIfAgent(req, r => r.Method switch { "GET" => Get(req), "DELETE" => Delete(req),
public Async.Task <HttpResponseData> Run( [HttpTrigger(AuthorizationLevel.Anonymous, "POST", Route = "agents/events")] HttpRequestData req) => _auth.CallIfAgent(req, Post);