From ab2063dbc5e1bf05bd5d3ec75989581c0d6f5b38 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Mon, 2 Jan 2023 19:13:40 +0100 Subject: [PATCH] Refactoring --- apps/api/src/app/frontend.middleware.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api/src/app/frontend.middleware.ts b/apps/api/src/app/frontend.middleware.ts index 9ea7c67ce..03443611e 100644 --- a/apps/api/src/app/frontend.middleware.ts +++ b/apps/api/src/app/frontend.middleware.ts @@ -131,12 +131,12 @@ export class FrontendMiddleware implements NestMiddleware { rootUrl: this.configurationService.get('ROOT_URL') }) ); - } else if (req.path === '/pt' || req.path.startsWith('/pt/')) { - res.send( + } else if (request.path === '/pt' || request.path.startsWith('/pt/')) { + response.send( this.interpolate(this.indexHtmlPt, { featureGraphicPath, languageCode: 'pt', - path: req.path, + path: request.path, rootUrl: this.configurationService.get('ROOT_URL') }) );