=> src/app/routes/index.ts
import { Router } from 'express';
const router = Router();
const moduleRoutes = [
{
path: '/pathname',
route: routername,
},
];
moduleRoutes.forEach((route) => router.use(pathname.path, routername.route));
export default router;
Top comments (0)