• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pillarjs / router / 39791069833
99%

Build:
DEFAULT BRANCH: master
Ran 22 Oct 2026 02:00PM UTC
Jobs 1
Files 3
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Oct 2026 01:52PM UTC coverage: 99.18% (+0.2%) from 98.938%
39791069833

push

github

web-flow
feat: add listRoutes method to list registered routes (#174)

* feat: add getRoutes API to list registered routes

Expose registered paths, HTTP methods, parameter keys, and router options.
Keep repeated routes, handle root mounts, and document the initial API.

Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com>

* feat: expose nested routes and routing metadata

Represent nested routers recursively and retain registered paths.
Include route names, matching options, and keys for string and RegExp paths.
Expand route coverage and update the documentation.

Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com>

* refactor: simplify route introspection to listRoutes

Return one { path, methods, router } entry per registered path.
Expose mounted router instances so consumers control recursion, and
defer additional metadata to later API extensions.

* fix: preserve specific methods and include implicit HEAD

Include automatic HEAD support and keep dedicated methods alongside .all().
Give entries expanded from array paths independent methods arrays.

* fix: preserve registered paths and detect mounted routers

Snapshot and flatten path arrays, identify mounted routers by their stack,
and filter the internal _all marker in Route._methods().
Cover empty routes and nested arrays, and document prefix matching.

* docs: clarify methods listed for routes with .all()

Describe methods as dedicated handlers plus automatic HEAD support.
Explain that .all() can handle additional methods and cover both
registration orders in the listRoutes test.

* fix: return undefined methods for routes with .all()

* fix: list .all() as a wildcard in registration order

* feat: add types for route introspection

---------

Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com>

23 of 23 new or added lines in 3 files covered. (100.0%)

484 of 488 relevant lines covered (99.18%)

46200.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39791069833.1 22 Oct 2026 02:00PM UTC 3
99.18
GitHub Action Run
Source Files on build 39791069833
  • Tree
  • List 3
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39791069833
  • d79402ff on github
  • Prev Build on master (#39077106520)
  • Next Build on master (#39983648950)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc