p-meier / hapi-api-version

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

Custom basePath early exit #10

Closed adam-26 closed 8 years ago

adam-26 commented 8 years ago

Hi, if using a custom basePath (not '/'), when determining if the request should be re-written to use a versioned route the plugin should exit early if the requested path does not start with the custom basePath. Would you accept a PR with this implemented?

Thanks, Adam.

p-meier commented 8 years ago

Sry. I don't understand the question you are asking. What do you mean with exit early? Could you please give a more detailed explanation?