Merge branch 'Feature_Task_management' of https://git.marcoaiot.com/admin/marco.pms.api into Feature_Task_management
This commit is contained in:
commit
a25fa069de
@ -147,9 +147,16 @@ if(jwtSettings != null && jwtSettings.Key != null)
|
|||||||
}
|
}
|
||||||
|
|
||||||
builder.Services.AddSingleton(jwtSettings);
|
builder.Services.AddSingleton(jwtSettings);
|
||||||
|
builder.WebHost.ConfigureKestrel(options =>
|
||||||
|
{
|
||||||
|
options.AddServerHeader = false; // Disable the "Server" header
|
||||||
|
});
|
||||||
|
|
||||||
var app = builder.Build();
|
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.UseHttpsRedirection();
|
||||||
app.UseMiddleware<ExceptionHandlingMiddleware>();
|
|
||||||
app.UseMiddleware<TenantMiddleware>();
|
|
||||||
app.UseMiddleware<LoggingMiddleware>();
|
|
||||||
|
|
||||||
|
|
||||||
app.UseAuthorization();
|
app.UseAuthorization();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user