From f7993a1d4a3d2a61ccf4cb4aebddb470415784c0 Mon Sep 17 00:00:00 2001 From: Galip Tolga Erdem Date: Mon, 28 Mar 2022 09:45:35 +0300 Subject: [PATCH] Fixed missing YARP midware on web-gateway --- .../src/EShopOnAbp.WebGateway/EShopOnAbpWebGatewayModule.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gateways/web/src/EShopOnAbp.WebGateway/EShopOnAbpWebGatewayModule.cs b/gateways/web/src/EShopOnAbp.WebGateway/EShopOnAbpWebGatewayModule.cs index ae4cb249..95068c38 100644 --- a/gateways/web/src/EShopOnAbp.WebGateway/EShopOnAbpWebGatewayModule.cs +++ b/gateways/web/src/EShopOnAbp.WebGateway/EShopOnAbpWebGatewayModule.cs @@ -79,6 +79,10 @@ public class EShopOnAbpWebGatewayModule : AbpModule // Regex for "", "/" and "" (whitespace) .AddRedirect("^(|\\|\\s+)$", "/swagger")); - // app.UseOcelot().Wait(); + app.UseRouting(); + app.UseEndpoints(endpoints => + { + endpoints.MapReverseProxy(); + }); } } \ No newline at end of file