mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-04 07:02:45 +08:00
allow acmeToken_get
This commit is contained in:
parent
97b53a4fd3
commit
6fbf4c6afa
1 changed files with 1 additions and 1 deletions
2
api.js
2
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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue