feat: add Logs
This commit is contained in:
@@ -3,8 +3,10 @@ using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using Microsoft.OpenApi;
|
||||
using mws.backend.dotnet.api.Authentication;
|
||||
using mws.backend.dotnet.api.Middleware;
|
||||
using mws.backend.dotnet.application.Auth;
|
||||
using mws.backend.dotnet.application.Common;
|
||||
using mws.backend.dotnet.infrastructure;
|
||||
using mws.backend.dotnet.infrastructure.Persistence;
|
||||
|
||||
@@ -46,6 +48,8 @@ builder.Services.AddSwaggerGen(options =>
|
||||
});
|
||||
|
||||
builder.Services.AddInfrastructure(builder.Configuration);
|
||||
builder.Services.AddHttpContextAccessor();
|
||||
builder.Services.AddScoped<ICurrentUser, HttpCurrentUser>();
|
||||
|
||||
var jwtSection = builder.Configuration.GetSection("Jwt");
|
||||
var jwtSecret = jwtSection["Secret"];
|
||||
|
||||
Reference in New Issue
Block a user