From 8e7b875aaa6f51cbd5c852a2eabc5cc5ec7c0bf0 Mon Sep 17 00:00:00 2001 From: yanghongwei Date: Wed, 2 Apr 2025 23:12:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=90=AFtoken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Program.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Program.cs b/Program.cs index 103265c..9f6a947 100644 --- a/Program.cs +++ b/Program.cs @@ -103,10 +103,10 @@ app.UseStaticFiles(new StaticFileOptions() RequestPath = "/upload" }); // Configure the HTTP request pipeline. -//if (app.Environment.IsDevelopment()) -//{ +if (app.Environment.IsDevelopment()) +{ -//} +} app.UseSwagger(); app.UseSwaggerUI(); //路由匹配 @@ -117,7 +117,7 @@ app.UseCors("CorsPolicy"); //异常中间件 app.UseMiddleware(); //token验证中间件 -//app.UseMiddleware(); +app.UseMiddleware(); //执行匹配的端点 app.UseEndpoints(endpoints => {