From c15167f21d120a507ba833b1da34a64818109924 Mon Sep 17 00:00:00 2001 From: Alex Bezdieniezhnykh Date: Fri, 2 May 2025 20:49:17 +0300 Subject: [PATCH] remove upload policy for allow model uploading from users --- Azaion.Api/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Azaion.Api/Program.cs b/Azaion.Api/Program.cs index e138313..32a5abf 100644 --- a/Azaion.Api/Program.cs +++ b/Azaion.Api/Program.cs @@ -163,7 +163,7 @@ app.MapPost("/resources/{dataFolder?}", async ([FromRoute]string? dataFolder, IFormFile data, IResourcesService resourceService, CancellationToken cancellationToken) => await resourceService.SaveResource(dataFolder, data, cancellationToken)) .Accepts("multipart/form-data") - .RequireAuthorization(apiUploaderPolicy) + .RequireAuthorization() //.WithOpenApi(op => new(op){ Summary = "Upload resource"}); //For some reason doesn't work when this is specified. .DisableAntiforgery();