Liten kommentar

This commit is contained in:
2025-06-29 09:13:57 +02:00
parent 88161dc2ab
commit a0b1ee2f85

View File

@ -2,10 +2,10 @@ using Azure.Storage.Blobs;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using OfflineDemoApi.Data;
using OfflineDemoApi.Models;
using System;
var builder = WebApplication.CreateBuilder(args);
// Tommy har varit h<>r
// Add services to the container.
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
builder.Services.AddOpenApi();
@ -24,7 +24,7 @@ builder.Services.AddSingleton(blobContainerClient);
// Configure Kestrel limits
builder.WebHost.ConfigureKestrel(options =>
{
options.Limits.MaxRequestBodySize = 524288000*2; // Example: 500 MB
options.Limits.MaxRequestBodySize = 524288000 * 2; // Example: 500 MB
options.Limits.MaxRequestBufferSize = 524288000 * 2; // Example: 100 MB
});
@ -52,7 +52,8 @@ if (app.Environment.IsDevelopment())
app.UseHttpsRedirection();
app.MapGet("/", () => {
app.MapGet("/", () =>
{
return "Hello World";
});