Skip to content

Commit

Permalink
vinternal function-level auth
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-zhur committed May 23, 2024
1 parent 6d56c98 commit 36d8b09
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -22,7 +21,7 @@ public GetProgressionsIndex(ILoggerFactory loggerFactory, DownstreamApiClient do

[Function(SourceApiUrls.VInternalGetProgressionsIndex)]
public Task<IActionResult> 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<GetProgressionsIndexResponse> Execute(GetProgressionsIndexRequest request)
Expand Down

0 comments on commit 36d8b09

Please sign in to comment.