Enable containers function (#2197)

Fixup auth and enable function.
This commit is contained in:
George Pollard
2022-08-09 13:16:57 +12:00
committed by GitHub
parent f5afbf8932
commit d15d80cd64

View File

@ -15,8 +15,8 @@ public class ContainersFunction {
_context = context; _context = context;
} }
// [Function("Download")] [Function("Containers")]
public Async.Task<HttpResponseData> Run([HttpTrigger("GET", "POST", "DELETE")] HttpRequestData req) public Async.Task<HttpResponseData> Run([HttpTrigger(AuthorizationLevel.Anonymous, "GET", "POST", "DELETE")] HttpRequestData req)
=> _auth.CallIfUser(req, r => r.Method switch { => _auth.CallIfUser(req, r => r.Method switch {
"GET" => Get(r), "GET" => Get(r),
"POST" => Post(r), "POST" => Post(r),