0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Allowed access to POST /db/backup endpoint

no-issue
This commit is contained in:
Nazar Gargol 2019-08-09 00:55:02 +02:00 committed by Fabien O'Carroll
parent 6779732cd0
commit bae19fbdb6

View file

@ -22,7 +22,8 @@ const notImplemented = function (req, res, next) {
subscribers: ['GET', 'PUT', 'DELETE', 'POST'], subscribers: ['GET', 'PUT', 'DELETE', 'POST'],
config: ['GET'], config: ['GET'],
webhooks: ['POST', 'DELETE'], webhooks: ['POST', 'DELETE'],
schedules: ['PUT'] schedules: ['PUT'],
db: ['POST']
}; };
const match = req.url.match(/^\/(\w+)\/?/); const match = req.url.match(/^\/(\w+)\/?/);