Na most egy validator is beköszönt
This commit is contained in:
@@ -8,6 +8,7 @@ using WorkFlowCheck.Common.DTO;
|
||||
using WorkFlowCheck.Web.Middleware;
|
||||
using WorkFlowCheck.Web.Services;
|
||||
using WorkFlowCheck.Web.Services.Interfaces;
|
||||
using WorkFlowCheck.Web.Validators;
|
||||
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
@@ -50,6 +51,8 @@ builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
|
||||
};
|
||||
});
|
||||
|
||||
builder.Services.AddFluentValidationSetup();
|
||||
|
||||
var app = builder.Build();
|
||||
app.UseMiddleware<JwtMiddleware>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user