yarn global add @nestjs/cli
nest new project-name
const availableRoutes: [] = router.stack .map(layer => { if (layer.route) { return { route: { path: layer.route?.path, method: layer.route?.stack[0].method, }, }; } }) .filter(item => item !== undefined);
Last updated 4 years ago