feat(controller): added in update server channel and refactors for more actions
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user