Ghost/core/server/api/v2/utils
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
..
serializers 🐛 Fixed Admin API v2 wasn't returning preview url 2019-03-21 19:08:38 +01:00
validators Added Canonical URL support to posts&pages in Admin & Content API v2 (#10594) 2019-03-12 17:51:29 +08:00
index.js Reverted & Solved apiType differently 2019-02-26 08:33:10 +01:00
permissions.js