FactuGES_ERP/apps/server/src/routes/v1.routes.ts

23 lines
522 B
TypeScript
Raw Normal View History

2025-02-01 21:48:13 +00:00
import { Router } from "express";
2025-02-03 21:54:51 +00:00
import { authRouter } from "./auth.routes";
2025-02-21 11:25:46 +00:00
import { companiesRouter } from "./companies.routes";
2025-02-24 19:00:28 +00:00
import { customersRouter } from "./customers.routes";
2025-02-21 11:25:46 +00:00
import { usersRouter } from "./users.routes";
2025-02-01 21:48:13 +00:00
export const v1Routes = () => {
const routes = Router({ mergeParams: true });
routes.get("/hello", (req, res) => {
res.send("Hello world!");
});
authRouter(routes);
2025-02-21 11:25:46 +00:00
usersRouter(routes);
companiesRouter(routes);
2025-02-01 21:48:13 +00:00
2025-02-24 19:00:28 +00:00
// Sales
customersRouter(routes);
2025-02-01 21:48:13 +00:00
return routes;
};