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 ✨