测试路径
parent
1676056e43
commit
a084a6b49b
|
@ -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);
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace IRaCIS.Core.API
|
|||
{
|
||||
|
||||
|
||||
app.UseHangfireDashboard("/hangfire", new DashboardOptions()
|
||||
app.UseHangfireDashboard("/back/hangfire", new DashboardOptions()
|
||||
{
|
||||
//直接访问,没有带token 获取不到用户身份信息,所以这种自定义授权暂时没法使用
|
||||
//Authorization = new[] { new hangfireAuthorizationFilter() }
|
||||
|
|
|
@ -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"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue