Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples on how to use #2

Open
micahlmartin opened this issue Nov 30, 2014 · 2 comments
Open

Examples on how to use #2

micahlmartin opened this issue Nov 30, 2014 · 2 comments

Comments

@micahlmartin
Copy link

I'm pretty new to Hapi so I'm scratching my head as to how to implement this. Can you add some examples? Thanks!

@felipeleusin
Copy link
Owner

Yeah, i'll spin something later today

@felipeleusin
Copy link
Owner

Also you can check the tests, basically you have to configure the plugin for each route when necessary kinda like https://github.com/felipeleusin/hapi-negotiator/blob/master/test/index.js#L39

The reply interface is going to change in hapi 8.0 and I have some ideas on how to improve the plugin but haven't had the time to look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants