summary refs log tree commit diff
path: root/api/src/middlewares/TestClient.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-04 11:23:12 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-04 11:23:12 +0200
commit6e9d4ed6a0cf018588d90d09a6dda2a67d545f26 (patch)
tree211aca0c08e3dda62cb68ba730fafa7c2113589f /api/src/middlewares/TestClient.ts
parentMerge branch 'master' of https://github.com/fosscord/fosscord-api (diff)
downloadserver-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.ts2
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;