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

23 lines
541 B
TypeScript
Raw Normal View History

2025-02-01 21:48:13 +00:00
import { Router } from "express";
2025-02-25 17:47:42 +00:00
import { accountsRouter } from "./accounts.routes";
2025-02-03 21:54:51 +00:00
import { authRouter } from "./auth.routes";
2025-02-25 19:17:30 +00:00
import { customerInvoicesRouter } from "./customer-invoices.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);
2025-02-25 17:47:42 +00:00
accountsRouter(routes);
2025-02-01 21:48:13 +00:00
2025-02-24 19:00:28 +00:00
// Sales
2025-02-25 19:17:30 +00:00
customerInvoicesRouter(routes);
2025-02-24 19:00:28 +00:00
2025-02-01 21:48:13 +00:00
return routes;
};