diff --git a/src/ReC.API/Program.cs b/src/ReC.API/Program.cs index f29b309..7b679e8 100644 --- a/src/ReC.API/Program.cs +++ b/src/ReC.API/Program.cs @@ -1,6 +1,7 @@ using Microsoft.EntityFrameworkCore; -using ReC.Infrastructure; +using ReC.API.Middleware; using ReC.Application; +using ReC.Infrastructure; var builder = WebApplication.CreateBuilder(args); @@ -30,6 +31,10 @@ builder.Services.AddSwaggerGen(); var app = builder.Build(); +#pragma warning disable CS0618 +app.UseMiddleware(); +#pragma warning restore CS0618 + // Configure the HTTP request pipeline. if (app.Environment.IsDevelopment()) {