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

20 lines
380 B
TypeScript
Raw Normal View History

2025-02-01 21:48:13 +00:00
import { Router } from "express";
2025-04-01 14:26:15 +00:00
import { invoicesRouter } from "./invoices.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!");
});
2025-04-22 08:11:50 +00:00
//authRouter(routes);
//usersRouter(routes);
//accountsRouter(routes);
2025-02-01 21:48:13 +00:00
2025-02-24 19:00:28 +00:00
// Sales
2025-04-01 14:26:15 +00:00
invoicesRouter(routes);
2025-02-24 19:00:28 +00:00
2025-02-01 21:48:13 +00:00
return routes;
};