From 6e9d4ed6a0cf018588d90d09a6dda2a67d545f26 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 4 Sep 2021 11:23:12 +0200 Subject: :bug: fix error handler and asset router --- api/src/middlewares/TestClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/src/middlewares/TestClient.ts') diff --git a/api/src/middlewares/TestClient.ts b/api/src/middlewares/TestClient.ts index 75fdf650..73e7b9c2 100644 --- a/api/src/middlewares/TestClient.ts +++ b/api/src/middlewares/TestClient.ts @@ -22,7 +22,7 @@ export default function TestClient(app: Application) { html = html.replace(/GATEWAY_ENDPOINT: .+/, `GATEWAY_ENDPOINT: \`${GATEWAY_ENDPOINT}\`,`); } - app.use("/assets", express.static(path.join(__dirname, "..", "assets"))); + app.use("/assets", express.static(path.join(__dirname, "..", "..", "assets"))); app.get("/assets/:file", async (req: Request, res: Response) => { delete req.headers.host; -- cgit 1.5.1