Ghost/core/server/api
Kevin Ansfield ca20f3a6b0 Added /oembed API endpoint
refs https://github.com/TryGhost/Ghost/issues/9623
- add `oembed-parser` module for checking provider availability for a url and fetching data from the provider
  - require it in the `overrides.js` file before the general Promise override so that the `promise-wrt` sub-dependency doesn't attempt to extend the Bluebird promise implementation
- add `/oembed` authenticated endpoint
  - takes `?url=` query parameter to match against known providers
  - adds safeguard against oembed-parser's providers list not recognising http+https and www+non-www
  - responds with `ValidationError` if no provider is found
  - responds with oembed response from matched provider's oembed endpoint if match is found
2018-06-12 16:18:01 +01:00
..
authentication.js Improved forwarding model options in the API layer (#9380) 2018-01-09 13:26:09 +01:00
clients.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
configuration.js Fixed incorrect return value for publicAPI from the configuration endpoint 2018-05-31 15:14:59 +02:00
db.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
index.js Added /oembed API endpoint 2018-06-12 16:18:01 +01:00
invites.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
mail.js Removed html usage in error messages (#9444) 2018-02-07 09:35:48 +01:00
notifications.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
oembed.js Added /oembed API endpoint 2018-06-12 16:18:01 +01:00
posts.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
redirects.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
roles.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
schedules.js Moved zip folder, read csv and package-json to lib/fs 2017-12-14 22:07:53 +01:00
settings.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
slack.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
slugs.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
subscribers.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
tags.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
themes.js Fixed broken i18n keys 2018-04-18 15:05:20 +02:00
upload.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
users.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
utils.js Extended the API object validation 2018-04-05 18:51:58 +02:00
webhooks.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00