Add Report Service and add middleware

This commit is contained in:
Suphonchai Phoonsawat 2023-07-12 21:50:11 +07:00
parent 841bf32175
commit 89263416b3
52 changed files with 567 additions and 103 deletions

View file

@ -1,4 +1,5 @@
using BMA.EHR.Application;
using BMA.EHR.Domain.Middlewares;
using BMA.EHR.Infrastructure;
using BMA.EHR.Infrastructure.Persistence;
using BMA.EHR.Placement.Service;
@ -110,7 +111,7 @@ var app = builder.Build();
app.MapHealthChecks("/health");
//app.UseMiddleware<ErrorHandlerMiddleware>();
app.UseMiddleware<ErrorHandlerMiddleware>();
app.UseHttpsRedirection();
app.UseCors();
app.UseAuthentication();