p-meier / hapi-api-version

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

Plugin can not handle multiple server connections. #13

Closed ThisThatBC closed 7 years ago

ThisThatBC commented 7 years ago

The following error is produced:

Uncaught error: Method not available when the selection has more than one connection or none

on hapi-api-version/index.js:89:30.

The server.match method seems to only work when there is a single server connection.

https://hapijs.com/api#servermatchmethod-path-host

p-meier commented 7 years ago

You are right. Currently it only supports one connection. Problem is I actually have no time to fix the issue - maybe you can create a pull request for it.