summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-03-19 22:08:28 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-03-19 22:11:54 +1100
commit1fd01fa000bf7d11def26ee7c4114ebfa07d9fa5 (patch)
treed4e05a4f15ce5e7878e1f2598b5931cfd77251d0 /src/api
parentAdd basic information page to / (diff)
parentMerge pull request #1005 from Xanderplayz18/patch-1 (diff)
downloadserver-1fd01fa000bf7d11def26ee7c4114ebfa07d9fa5.tar.xz
Merge branch 'master' of github.com:fosscord/fosscord-server
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);