diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-04 11:23:12 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-04 11:23:12 +0200 |
commit | 6e9d4ed6a0cf018588d90d09a6dda2a67d545f26 (patch) | |
tree | 211aca0c08e3dda62cb68ba730fafa7c2113589f /api/src/middlewares/TestClient.ts | |
parent | Merge branch 'master' of https://github.com/fosscord/fosscord-api (diff) | |
download | server-6e9d4ed6a0cf018588d90d09a6dda2a67d545f26.tar.xz |
:bug: fix error handler and asset router
Diffstat (limited to 'api/src/middlewares/TestClient.ts')
-rw-r--r-- | api/src/middlewares/TestClient.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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; |