Skip to content

Glob glob

Latest
Compare
Choose a tag to compare
@AdriVanHoudt AdriVanHoudt released this 11 Jan 09:42
· 7 commits to master since this release
v5.0.0
c754d8f

The dir option now takes a Glob pattern, this makes it way easier to use the lib to register routes in multiple folders.
For example when you have a structure like

lib/routes/
├── healthcheck.js
├── v1
│   └── job
│       └── campaign.js
├── v2
│   └── job
│       └── campaign.js
└── version.js

To upgrade the basic option change from ${__dirname}/src/routes to ${__dirname}/src/routes/** for example.
The library used is https://github.com/isaacs/node-glob and you can find more Glob awesomeness over there.
If you have any troubles/questions/... just open an issue ✨

This release was possible due to PR #61 from @clok 🚀