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

15 lines
279 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-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);
return routes;
};