Browse Source

Fixed missing YARP midware on web-gateway

pull/105/head
Galip Tolga Erdem 5 years ago
parent
commit
f7993a1d4a
  1. 6
      gateways/web/src/EShopOnAbp.WebGateway/EShopOnAbpWebGatewayModule.cs

6
gateways/web/src/EShopOnAbp.WebGateway/EShopOnAbpWebGatewayModule.cs

@ -79,6 +79,10 @@ public class EShopOnAbpWebGatewayModule : AbpModule
// Regex for "", "/" and "" (whitespace) // Regex for "", "/" and "" (whitespace)
.AddRedirect("^(|\\|\\s+)$", "/swagger")); .AddRedirect("^(|\\|\\s+)$", "/swagger"));
// app.UseOcelot().Wait(); app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapReverseProxy();
});
} }
} }
Loading…
Cancel
Save