feat(app): order schdeuler

This commit is contained in:
2025-10-15 14:27:54 -05:00
parent dfff8fc166
commit 94e1198f63
7 changed files with 243 additions and 3 deletions

View File

@@ -2,12 +2,14 @@ import type { Express, Request, Response } from "express";
import { setupAuthRoutes } from "../auth/routes/routes.js";
import { setupAdminRoutes } from "../admin/routes.js";
import { setupSystemRoutes } from "../system/routes.js";
import { setupLogisticsRoutes } from "../logistics/routes.js";
export const setupRoutes = (app: Express, basePath: string) => {
// all routes
setupAuthRoutes(app, basePath);
setupAdminRoutes(app, basePath);
setupSystemRoutes(app, basePath);
setupLogisticsRoutes(app, basePath);
// always try to go to the app weather we are in dev or in production.
app.get(basePath + "/", (req: Request, res: Response) => {