From 569e91c63636345391f741df049c9374a141a434 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期一, 26 八月 2024 08:57:33 +0800 Subject: [PATCH] 添加路由新建配置,重新导出种子数据 --- WIDESEAWCS_Server/WIDESEAWCS_Server/Program.cs | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/WIDESEAWCS_Server/WIDESEAWCS_Server/Program.cs b/WIDESEAWCS_Server/WIDESEAWCS_Server/Program.cs index e2687ad..36684ae 100644 --- a/WIDESEAWCS_Server/WIDESEAWCS_Server/Program.cs +++ b/WIDESEAWCS_Server/WIDESEAWCS_Server/Program.cs @@ -63,14 +63,13 @@ builder.Services.AddHttpContextSetup(); -//builder.Services.AddHostedService<QuartzJobHostedService>(); +builder.Services.AddHostedService<QuartzJobHostedService>(); //todo builder.Services.AddMvc(options => { options.Filters.Add(typeof(ApiAuthorizeFilter)); //options.Filters.Add(typeof(ActionExecuteFilter)); - // options.SuppressAsyncSuffixInActionNames = false; }); builder.Services.AddAuthorizationSetup(); @@ -138,11 +137,8 @@ app.UseRouting(); - app.UseAuthentication(); app.UseAuthorization(); - - app.MapControllers(); -- Gitblit v1.9.3