Merge branch 'master' of github.com:fosscord/fosscord-server

This commit is contained in:
Madeline
2023-03-19 22:08:28 +11:00
19 changed files with 38 additions and 23 deletions

View File

@@ -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);