hapi Tutorial — How to Use Query Parameters

preview_player
Показать описание
Learn how to use query parameters on incoming requests within your hapi app.

Find the tutorials for an easy read here:

----------------------------------------

Checkout 320+ technical in-depth tutorials:

Subscribe for two new videos every week:

----------------------------------------

Follow us on social media to get updates on new content:
Рекомендации по теме
Комментарии
Автор

Is a cool feature that Hapy convert to array duplicate keys. Thanks for the tutorial. 😃

junihh
Автор

thanks for the tutorial, how I can check if a parameter exists? in php it's like: if isset($_GET['param'])

jdeleca
Автор

Hey, I enjoy your tutorial :) got two questions... don´t you need semicolons? And my cmd always throws an error. Saying connection is not a function. Here my code:

const hapi = require('hapi');

const server = new hapi.Server();


//add servers connection
server.connection({
host: 'localhost',
port: 3000
});

maybe you know what i´m doing wrong :)

pascallohscheidt