mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-23 06:38:50 +00:00
@ -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),
|
||||||
|
Reference in New Issue
Block a user