0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/server
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
..
adapters 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
api Added /oembed API endpoint 2018-06-12 16:18:01 +01:00
apps 🎨Updated private mode message (#9677) 2018-06-11 23:35:23 +02:00
config Replaced routeKeywords in config with hard coded keywords (#9561) 2018-04-17 10:36:05 +01:00
data 🐛 Fixed unable to publish a post after slack hook import 2018-06-11 11:08:08 +02:00
helpers Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
lib Removed more 'use strict' usages 2018-06-02 21:38:11 +02:00
models Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
public 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
services Fixed typo in: core/server/services/apps/index.js (#9673) 2018-06-11 23:19:07 +02:00
translations Added /oembed API endpoint 2018-06-12 16:18:01 +01:00
views Fixed error trying to render 404 for missing asset 2017-12-22 20:08:59 +00:00
web Added /oembed API endpoint 2018-06-12 16:18:01 +01:00
analytics-events.js Cleared out old unused events 2017-12-13 09:08:25 +00:00
filters.js Moved pipeline/sequence to lib/promise 2017-12-13 22:20:02 +01:00
ghost-server.js Consistent event names 2018-04-15 23:52:42 +02:00
index.js Dynamic Routing Beta (#9596) 2018-06-05 19:02:20 +02:00
overrides.js Added /oembed API endpoint 2018-06-12 16:18:01 +01:00
update-check.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00