测试路径

Uat_Study
hang 2023-08-24 16:36:47 +08:00
parent 1676056e43
commit a084a6b49b
3 changed files with 4 additions and 4 deletions

View File

@ -167,7 +167,7 @@ namespace IRaCIS.Core.API
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UsePathBase(PathString.FromUriComponent("/back"));
//app.UsePathBase(PathString.FromUriComponent("/back"));
//±¾µØ»¯
app.UseLocalization();
@ -184,7 +184,7 @@ namespace IRaCIS.Core.API
//LogDashboard
app.UseLogDashboard("/LogDashboard");
app.UseLogDashboard("/back/logs");
//hangfire
app.UseHangfireConfig(env);

View File

@ -18,7 +18,7 @@ namespace IRaCIS.Core.API
{
app.UseHangfireDashboard("/hangfire", new DashboardOptions()
app.UseHangfireDashboard("/back/hangfire", new DashboardOptions()
{
//直接访问没有带token 获取不到用户身份信息,所以这种自定义授权暂时没法使用
//Authorization = new[] { new hangfireAuthorizationFilter() }

View File

@ -13,7 +13,7 @@ namespace IRaCIS.Core.API
services.AddLogDashboard(opt =>
{
//opt.PathMatch = "/api/LogDashboard";
opt.PathMatch = "/LogDashboard";
opt.PathMatch = "/back/logs";
//opt.AddAuthorizationFilter(new LogDashboardBasicAuthFilter("admin", "zhizhun2018"));