0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Added oembed Admin API endpoint to allow list

no issue

- Some services require the `oembed` API endpoint to be reachable via Admin API
- Adding the endpoint to the allowed list resolves this
This commit is contained in:
Aileen Nowak 2023-04-18 14:40:41 +01:00 committed by Aileen Booker
parent 0130c9f553
commit 540de8eafd

View file

@ -36,7 +36,8 @@ const notImplemented = function (req, res, next) {
files: ['POST'],
media: ['POST'],
db: ['POST'],
settings: ['GET']
settings: ['GET'],
oembed: ['GET']
};
const match = req.url.match(/^\/(\w+)\/?/);