refactor(modules): moved modules to app to control everything based on there active setting

This commit is contained in:
2025-10-29 21:57:11 -05:00
parent 6493e0398a
commit 99b2d762d6
35 changed files with 5807 additions and 121 deletions

View File

@@ -1,4 +1,5 @@
import type { Express, Request, Response } from "express";
import modules from "./routes/modules/moduleRoutes.js";
import settings from "./routes/settings/settingRoutes.js";
import stats from "./routes/stats.js";
@@ -9,4 +10,8 @@ export const setupSystemRoutes = (app: Express, basePath: string) => {
basePath + "/api/system/settings", // will pass bc system admin but this is just telling us we need this
settings,
);
app.use(
basePath + "/api/system/modules", // will pass bc system admin but this is just telling us we need this
modules,
);
};