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,5 +1,6 @@
using BMA.EHR.API.Command;
using BMA.EHR.Application;
using BMA.EHR.Domain.Middlewares;
using BMA.EHR.Infrastructure;
using BMA.EHR.Infrastructure.Persistence;
using BMA.EHR.MetaData.Service;
@ -111,7 +112,7 @@ var app = builder.Build();
app.MapHealthChecks("/health");
//app.UseMiddleware<ErrorHandlerMiddleware>();
app.UseMiddleware<ErrorHandlerMiddleware>();
app.UseHttpsRedirection();
app.UseCors();
app.UseAuthentication();