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-15 21:30:12 +00:00
|
|
|
import { userRouter } from "./user.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-15 21:30:12 +00:00
|
|
|
userRouter(routes);
|
2025-02-01 21:48:13 +00:00
|
|
|
|
|
|
|
|
return routes;
|
|
|
|
|
};
|