diff options
Diffstat (limited to 'api/src/middlewares/TestClient.ts')
-rw-r--r-- | api/src/middlewares/TestClient.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/src/middlewares/TestClient.ts b/api/src/middlewares/TestClient.ts index 7139b59c..5c0b081b 100644 --- a/api/src/middlewares/TestClient.ts +++ b/api/src/middlewares/TestClient.ts @@ -88,7 +88,8 @@ 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("/api") || req.url.startsWith("/__development")) return; + if(!useTestClient) return res.send("Test client is disabled on this instance. Use a stand-alone client to connect this instance.") if (req.url.startsWith("/invite")) return res.send(html.replace("9b2b7f0632acd0c5e781", "9f24f709a3de09b67c49")); |