- This package finds all the API routes of an express application
-
Install the package and express library if you already have not installed it
npm i routes-finder express
-
Create an express app object
const express = require('express');
const app = express();
- Require this package and call the
routesFinder
function by passing app object
const { routesFinder } = require('routes-finder');
routesFinder(app);