I do not see such an option in Hapi docs . However, I can offer you a small workaround. Make some function:
function createRoutePath(routePath) { return `/api/1${routePath}`; }
And then use it like this:
server.route({ method: 'GET', path: createRoutePath('/pets') });
UPDATE: As another workaround, leave it as it is and configure the proxy server. For example nginx.
source share