Function listRoutes

  • Lists the routes currently defined in the Express router.

    Parameters

    • router: Router

      The Express router.

    Returns string[]

    An array of strings representing each route method and path.