mirror of
https://github.com/azaion/admin.git
synced 2026-04-23 01:06:33 +00:00
remove upload policy for allow model uploading from users
This commit is contained in:
@@ -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<IFormFile>("multipart/form-data")
|
||||
.RequireAuthorization(apiUploaderPolicy)
|
||||
.RequireAuthorization()
|
||||
//.WithOpenApi(op => new(op){ Summary = "Upload resource"}); //For some reason doesn't work when this is specified.
|
||||
.DisableAntiforgery();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user