refactor(modules): moved modules to app to control everything based on there active setting
This commit is contained in:
@@ -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,
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user