falta testear

This commit is contained in:
2025-01-13 01:08:02 -03:00
parent db7c66e15b
commit 69b83c8380
8 changed files with 208 additions and 17 deletions

View File

@@ -2,6 +2,7 @@
using System.Text.Json;
using Minio;
using AlquilaFacil.Config;
using Microsoft.AspNetCore.Http.Features;
var builder = WebApplication.CreateBuilder(args);
@@ -19,6 +20,11 @@ builder.Services.AddMinio(options => options
.WithSSL(false)
.Build());
builder.Services.Configure<FormOptions>(options =>
{
options.MultipartBodyLengthLimit = 50 * 1024 * 1024; // 50 MB
});
builder.Services.AddCors(options =>
{
options.AddPolicy("AllowSvelteApp",