MCPcopy
hub / github.com/hapijs/hapi / handler

Function handler

test/auth.js:258–258  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

256 });
257
258 const handler = (request) => request.auth.credentials;
259 server.route({ method: 'GET', path: '/a', handler, options: { auth: 'a' } });
260 server.route({ method: 'GET', path: '/root', handler, options: { auth: 'root' } });
261

Callers

nothing calls this directly

Calls 1

testMethod · 0.65

Tested by

no test coverage detected