diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-03-19 22:08:28 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-03-19 22:11:54 +1100 |
commit | 1fd01fa000bf7d11def26ee7c4114ebfa07d9fa5 (patch) | |
tree | d4e05a4f15ce5e7878e1f2598b5931cfd77251d0 /src/api | |
parent | Add basic information page to / (diff) | |
parent | Merge pull request #1005 from Xanderplayz18/patch-1 (diff) | |
download | server-1fd01fa000bf7d11def26ee7c4114ebfa07d9fa5.tar.xz |
Merge branch 'master' of github.com:fosscord/fosscord-server
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/Server.ts | 4 |
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); |