Merge branch 'Feature_Task_management' of https://git.marcoaiot.com/admin/marco.pms.api into Feature_Task_management

This commit is contained in:
ashutosh.nehete 2025-04-14 12:49:20 +05:30
commit a25fa069de

View File

@ -147,9 +147,16 @@ if(jwtSettings != null && jwtSettings.Key != null)
}
builder.Services.AddSingleton(jwtSettings);
builder.WebHost.ConfigureKestrel(options =>
{
options.AddServerHeader = false; // Disable the "Server" header
});
var app = builder.Build();
app.UseMiddleware<ExceptionHandlingMiddleware>();
app.UseMiddleware<TenantMiddleware>();
app.UseMiddleware<LoggingMiddleware>();
@ -177,9 +184,7 @@ app.UseStaticFiles(); // Enables serving static files
app.UseHttpsRedirection();
app.UseMiddleware<ExceptionHandlingMiddleware>();
app.UseMiddleware<TenantMiddleware>();
app.UseMiddleware<LoggingMiddleware>();
app.UseAuthorization();