Skip to content

This is an example used to illustrate a blog post about sending array as query parameters

License

Notifications You must be signed in to change notification settings

Nargonath/hapijs-array-query-params

Repository files navigation

hapijs-array-query-params

This is an example used to illustrate a blog post about sending array as query parameters

Contents

This example goal is to demonstrate multiple way of handling array query parameters when developing with HapiJS. There are 3 points of interest:

  • client.js: client side code which uses axios to call both HapiJS servers.
  • server-query-setting.js: first HapiJS server which handles array query params using the server.options.query.parser option.
  • server-joi-example.js: second HapiJS server which handles array query params using joi validation.

Usage

npm start will start both servers and loads a webpack-dev-server for the client side.

About

This is an example used to illustrate a blog post about sending array as query parameters

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published