From 6fbf4c6afad93e01d8e43b78a29f68505bb5e7a2 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Fri, 10 Sep 2021 10:35:13 +0300 Subject: [PATCH] allow acmeToken_get --- api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.js b/api.js index 5074d796..c7dcbd98 100644 --- a/api.js +++ b/api.js @@ -205,7 +205,7 @@ server.get({ name: 'public_get', path: '/public/*' }, restify.plugins.serveStati server.use( tools.asyncifyJson(async (req, res, next) => { - if (['public_get', 'public_post'].includes(req.route.name)) { + if (['public_get', 'public_post', 'acmeToken_get'].includes(req.route.name)) { // skip token check for public pages return next(); }