0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-25 02:31:59 -05:00
ghost/core/test/unit
kirrg001 1e6f4ba340 🐛 Fixed Admin API v2 wasn't returning preview url
no issue

- Admin API v2 returned /404/, see comment in code base:

/**
* CASE: admin api should serve preview urls
*
* @NOTE
* The url service has no clue of the draft/scheduled concept. It only generates urls for published resources.
* Adding a hardcoded fallback into the url service feels wrong IMO.
*
* Imagine the site won't be part of core and core does not serve urls anymore.
* Core needs to offer a preview API, which returns draft posts.
* That means the url is no longer /p/:uuid, it's e.g. GET /api/v2/content/preview/:uuid/.
* /p/ is a concept of the site, not of core.
*
* The site is not aware of existing drafts. It won't be able to get the uuid.
*
* Needs further discussion.
*/
2019-03-21 19:08:38 +01:00
..
adapters Removed superagent dependency (#10535) 2019-03-04 15:59:38 +08:00
api 🐛 Fixed Admin API v2 wasn't returning preview url 2019-03-21 19:08:38 +01:00
apps 🐛 Fixed empty amp page 2019-02-27 17:56:09 +01:00
config Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
data Updated backup file names to include timestamp (#10607) 2019-03-13 21:06:05 +01:00
helpers Added tests for null values in content/excerpt helpers 2019-03-18 19:52:49 +08:00
lib Added consistent handling to empty mobiledoc 2019-03-18 20:06:53 +08:00
models Removed 'null' parsing in settings model 2019-03-11 20:07:48 +01:00
public Refactored Ghost SDK unit test 2018-10-05 16:49:46 +02:00
services Added Canonical URL support to posts&pages in Admin & Content API v2 (#10594) 2019-03-12 17:51:29 +08:00
web Bumped sinon from 4.4.6 to 7.3.2 (#10400) 2019-01-21 17:53:44 +01:00
filters_spec.js Bumped sinon from 4.4.6 to 7.3.2 (#10400) 2019-01-21 17:53:44 +01:00