feat(controller): added in update server channel and refactors for more actions

This commit is contained in:
2025-09-06 22:26:17 -05:00
parent 38a6b0c0b3
commit e0be95978d
5 changed files with 176 additions and 13 deletions

View File

@@ -66,6 +66,11 @@ const main = async () => {
if (process.env.NODE_ENV?.trim() !== "production") {
app.use(morgan("tiny"));
basePath = "/lst";
app.use(
basePath + "/test",
express.static(join(__dirname, "../../controller"))
);
}
// docs and api stuff
@@ -78,6 +83,11 @@ const main = async () => {
express.static(join(__dirname, "../../frontend/dist"))
);
app.use(
basePath + "/test",
express.static(join(__dirname, "../../frontend/dist"))
);
// register app
setupRoutes(app, basePath);