allow acmeToken_get

This commit is contained in:
Andris Reinman 2021-09-10 10:35:13 +03:00
parent 97b53a4fd3
commit 6fbf4c6afa

2
api.js
View file

@ -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();
}