From ff7a427c918d8c706b41689e7c45387f3f5fe8ce Mon Sep 17 00:00:00 2001 From: Christopher Blanchard Date: Sat, 10 Jun 2023 10:31:36 +0200 Subject: [PATCH] fix(App): Load router if URL Prefix not defined --- src/config/routes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/routes.ts b/src/config/routes.ts index 7e0c0feb..c359e080 100644 --- a/src/config/routes.ts +++ b/src/config/routes.ts @@ -43,5 +43,5 @@ export const routes = (app: Express): void => { router.get("/scotland/postcodes/:postcode", scottishPostcodes.show); const { urlPrefix } = getConfig(); - if (urlPrefix) app.use(urlPrefix, router); + app.use(urlPrefix, router); };