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

This commit is contained in:
Madeline committed 2023-03-19 22:11:54 +11:00
commit 1fd01fa000
19 files changed
+38 -23

No files matched your search

+3 -1
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);