This is an example used to illustrate a blog post about sending array as query parameters
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 usesaxios
to call both HapiJS servers.server-query-setting.js
: first HapiJS server which handles array query params using theserver.options.query.parser
option.server-joi-example.js
: second HapiJS server which handles array query params usingjoi
validation.
npm start
will start both servers and loads a webpack-dev-server
for the client side.