15 lines
279 B
TypeScript
15 lines
279 B
TypeScript
import { Router } from "express";
|
|
import { authRouter } from "./auth.routes";
|
|
|
|
export const v1Routes = () => {
|
|
const routes = Router({ mergeParams: true });
|
|
|
|
routes.get("/hello", (req, res) => {
|
|
res.send("Hello world!");
|
|
});
|
|
|
|
authRouter(routes);
|
|
|
|
return routes;
|
|
};
|