summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/Server.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/Server.ts b/src/api/Server.ts
index dbe61444..6ec531e0 100644
--- a/src/api/Server.ts
+++ b/src/api/Server.ts
@@ -135,7 +135,9 @@ export class FosscordServer extends Server {
 		app.use("/api/v9", api);
 		app.use("/api", api); // allow unversioned requests
 
-		app.get("/", express.static(PUBLIC_ASSETS_FOLDER));
+		app.get("/", (req, res) =>
+			res.sendFile(path.join(PUBLIC_ASSETS_FOLDER, "index.html")),
+		);
 
 		this.app.use(ErrorHandler);