Skip to content

Commit

Permalink
fix(App): Load router if URL Prefix not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
cblanc committed Jun 10, 2023
1 parent c0ee972 commit ff7a427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

0 comments on commit ff7a427

Please sign in to comment.