From 36d8b099ad7553e6086546d626ab08a72d069cb7 Mon Sep 17 00:00:00 2001 From: Pavel Zhur Date: Thu, 23 May 2024 05:04:39 +0300 Subject: [PATCH] vinternal function-level auth --- .../HarmonyDB.Index.Api/Functions/V1/GetProgressionsIndex.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/HarmonyDB.Index/HarmonyDB.Index.Api/Functions/V1/GetProgressionsIndex.cs b/HarmonyDB.Index/HarmonyDB.Index.Api/Functions/V1/GetProgressionsIndex.cs index 047c4ccc..4a6f1674 100644 --- a/HarmonyDB.Index/HarmonyDB.Index.Api/Functions/V1/GetProgressionsIndex.cs +++ b/HarmonyDB.Index/HarmonyDB.Index.Api/Functions/V1/GetProgressionsIndex.cs @@ -1,4 +1,3 @@ -using HarmonyDB.Index.Api.Services; using HarmonyDB.Index.DownstreamApi.Client; using HarmonyDB.Source.Api.Model; using HarmonyDB.Source.Api.Model.VInternal; @@ -22,7 +21,7 @@ public GetProgressionsIndex(ILoggerFactory loggerFactory, DownstreamApiClient do [Function(SourceApiUrls.VInternalGetProgressionsIndex)] public Task Run( - [HttpTrigger(AuthorizationLevel.Anonymous, "post")] HttpRequest req, [FromBody] GetProgressionsIndexRequest request) + [HttpTrigger(AuthorizationLevel.Function, "post")] HttpRequest req, [FromBody] GetProgressionsIndexRequest request) => RunHandler(request); protected override async Task Execute(GetProgressionsIndexRequest request)