2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

Allowed POST & DELETE webhooks endpoints for integrations

refs #9865

- was not sure about allowing to edit webhooks
This commit is contained in:
kirrg001 2019-02-07 23:06:49 +01:00 committed by Katharina Irrgang
parent b83232bf0c
commit f8a286869a

View file

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