|
|
|
@ -98,12 +98,11 @@ namespace BackendAdminAppGateway.Host |
|
|
|
options.SwaggerEndpoint("/swagger/v1/swagger.json", "BackendAdminApp Gateway API"); |
|
|
|
}); |
|
|
|
|
|
|
|
app.MapWhen(ctx => ctx.Request.Path.ToString().StartsWith("/api/abp/") || |
|
|
|
ctx.Request.Path.ToString().StartsWith("/Abp/"), |
|
|
|
app2 => |
|
|
|
{ |
|
|
|
app2.UseMvcWithDefaultRouteAndArea(); |
|
|
|
}); |
|
|
|
app.MapWhen( |
|
|
|
ctx => ctx.Request.Path.ToString().StartsWith("/api/abp/") || |
|
|
|
ctx.Request.Path.ToString().StartsWith("/Abp/"), |
|
|
|
app2 => { app2.UseMvcWithDefaultRouteAndArea(); } |
|
|
|
); |
|
|
|
|
|
|
|
app.UseOcelot().Wait(); |
|
|
|
} |
|
|
|
|