From d15d80cd640d3ff8cc7814ee94c7fcca12b5a865 Mon Sep 17 00:00:00 2001 From: George Pollard Date: Tue, 9 Aug 2022 13:16:57 +1200 Subject: [PATCH] Enable `containers` function (#2197) Fixup auth and enable function. --- src/ApiService/ApiService/Functions/Containers.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ApiService/ApiService/Functions/Containers.cs b/src/ApiService/ApiService/Functions/Containers.cs index cb0a3bc78..dd04b4106 100644 --- a/src/ApiService/ApiService/Functions/Containers.cs +++ b/src/ApiService/ApiService/Functions/Containers.cs @@ -15,8 +15,8 @@ public class ContainersFunction { _context = context; } - // [Function("Download")] - public Async.Task Run([HttpTrigger("GET", "POST", "DELETE")] HttpRequestData req) + [Function("Containers")] + public Async.Task Run([HttpTrigger(AuthorizationLevel.Anonymous, "GET", "POST", "DELETE")] HttpRequestData req) => _auth.CallIfUser(req, r => r.Method switch { "GET" => Get(r), "POST" => Post(r),