From fbe6142cfd1730e06aa7d40de97fe20bf4525f8d Mon Sep 17 00:00:00 2001 From: Benamar BELARBI Date: Tue, 25 Apr 2017 13:54:17 +0200 Subject: [PATCH] add auth customisation add an option for auth customisation --- lib/hapi.js | 1 + 1 file changed, 1 insertion(+) 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');