summary refs log tree commit diff
path: root/api/src/middlewares/TestClient.ts
diff options
context:
space:
mode:
authorSamuel <34555296+Flam3rboy@users.noreply.github.com>2021-12-05 20:13:40 +0100
committerGitHub <noreply@github.com>2021-12-05 20:13:40 +0100
commit1b66f71d8cb972bdafe88b4559dcda8cfa42aa4d (patch)
tree758f88ab2ad3469d83f3771fa73e05c796f9ee5a /api/src/middlewares/TestClient.ts
parentMerge pull request #530 from erkinalp/patch-3 (diff)
parentMinor API work (diff)
downloadserver-1b66f71d8cb972bdafe88b4559dcda8cfa42aa4d.tar.xz
Merge pull request #536 from Thesourtimes/master
Diffstat (limited to 'api/src/middlewares/TestClient.ts')
-rw-r--r--api/src/middlewares/TestClient.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/src/middlewares/TestClient.ts b/api/src/middlewares/TestClient.ts

index b50f4e5c..6167d9fd 100644 --- a/api/src/middlewares/TestClient.ts +++ b/api/src/middlewares/TestClient.ts
@@ -87,8 +87,9 @@ export default function TestClient(app: Application) { res.set("Cache-Control", "public, max-age=" + 60 * 60 * 24); res.set("content-type", "text/html"); + if(req.url.startsWith("/api")) return; if (req.url.startsWith("/invite")) return res.send(html.replace("9b2b7f0632acd0c5e781", "9f24f709a3de09b67c49")); res.send(html); }); -} +} \ No newline at end of file