Category "hapijs"

Hapjs Route Prerequisite is executed and route is always returning 404

I am building a web application using Hapijs. I am using route prerequisites to do something before the route handler is executed. This is my route server.route

Hapijs running test ignoring the leaks

I am building a web application using HapiJS. I am writing tests for my application. I am running the test using the following command: lab -v test/**/*.test.js

RESTful API: how to distinguish users requests from front-end requests?

So, I have a RESTful API (built with Hapi.js) that has endpoints consumed by users and my front-end app (built with Next.js). GET api/candies is one of them, I'

How to register pg-promise with hapi

I try to register pg-promise as hapi plugin. However, the following error occurred. TypeError: Cannot read properties of undefined (reading 'name') at interna

Is there a way to define an integer property as int64 in a Joi model that is used by Hapi Swagger

I am having the following Joi model const SimpleModel = Joi.object({ id: Joi.number().integer().required().description('ID') }).label('SimpleModel'); The m