Na most egy validator is beköszönt

This commit is contained in:
2025-03-17 15:01:50 +01:00
parent 8c1e60889d
commit b8fcdd5c3d
9 changed files with 73 additions and 4 deletions
+3
View File
@@ -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>();