add logs system
This commit is contained in:
parent
7d891378be
commit
ab7c8a74d7
9 changed files with 321 additions and 168 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using BMA.EHR.Recurit.Exam.Service;
|
||||
using BMA.EHR.Recurit.Exam.Service.Core;
|
||||
using BMA.EHR.Recurit.Exam.Service.Data;
|
||||
using BMA.EHR.Recurit.Exam.Service.Services;
|
||||
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||
|
|
@ -131,6 +132,8 @@ app.UseDefaultFiles();
|
|||
app.UseStaticFiles();
|
||||
app.MapControllers();
|
||||
|
||||
app.UseMiddleware<RequestLoggingMiddleware>();
|
||||
|
||||
// apply migrations
|
||||
await using var scope = app.Services.CreateAsyncScope();
|
||||
await using var db = scope.ServiceProvider.GetRequiredService<ApplicationDbContext>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue