fknop / hapi-pagination

Hapi plugin to handle "custom" pagination
MIT License
63 stars 36 forks source link

adds option to override the baseUri for the generated pagination links #4

Closed tnolet closed 8 years ago

tnolet commented 8 years ago

Hi,

I've added an option to override the base uri (protocol + server + port) to use in the generated links. This allows for the use of this plugin in a typical production environment where an API might live behind a load balancer that offloads SSL/TLS and where some port mapping might happen.

I like this plugin, including this feature would be awesome.

fknop commented 8 years ago

Hi @tnolet,

Great idea, I'm gonna merge this and publish it on npm. Thank you.

fknop commented 8 years ago

Done. I also updated the README with your new option !

tnolet commented 8 years ago

great!