- Added support for global middleware that run before each route and its' middleware
- Fixed routes with multiple controllers exported aren't loaded correctly
- Added support for version and middleware declarations for routes with controllers exported as
default
- Added optional callback parameter that returns the modified server instance
- Added tests 🎉
- Fixed root-level route gets prepended with superfluous forward slash
- Fixed a compatibility issue with [email protected] requiring a forward slash on route paths (see migration guide for details)
- Changed routes can now export a single function as a controller
- Added default route version number (1.0.0)
- Added explicit file version via file name (ie, get-1.0.0.js)
- Added warning when attempting to load empty route file
- Added
npm prepare
build step using rollup
- Added notice about missing build script and Node v8+ dependency
- Added missing
main
declaration topackage.json
- Changed API to enable use with Restify's .use()
- Added changelog
- Added
verbs
option to allow additional HTTP methods (note: must be supported by Restify) - Changed
rootDir
option is now calledroutes
- Added
routes
option now defaults toroutes/
inside the current working directory