p-meier / hapi-api-version

An API versioning plugin for hapi.
Apache License 2.0
74 stars 26 forks source link

Add passiveMode option to prevent breaking non-versioned routes/resources and reduce overhead #7

Closed ruionwriting closed 8 years ago

ruionwriting commented 8 years ago

passiveMode

When having a server that runs the API side-by-side with the documentation (ex: happi-swagger) we don't want to append version to the request path because simply it's not intended. passiveMode solves this preventing breaking non-versioned routes/resources and reduces overhead.

basePath

Allows to use the plugin when having a base path different from /.

p-meier commented 8 years ago

Thanks a lot for your PR. I will look at it on the weekend.