diff --git a/lib/hapi.js b/lib/hapi.js index 0f2e2a8..cbd7ecb 100644 --- a/lib/hapi.js +++ b/lib/hapi.js @@ -6,6 +6,7 @@ function plugin(options) { server.route({ method: 'GET', path: options.url, + auth: options.auth||false, handler: (req, reply) => { const response = reply(metrics.summary()); response.type('text/plain');