Ghost/core/server/api/v2
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
..
utils 🐛 Fixed Admin API v2 wasn't returning preview url 2019-03-21 19:08:38 +01:00
actions.js Added v2 actions endpoint 2019-02-06 21:36:09 +01:00
authors-public.js Renamed authors ctrl to authors-public 2019-02-26 08:33:10 +01:00
config.js Added "useGravatar" to config endpoint in Admin API v2 2019-02-25 15:39:47 +01:00
db.js
images.js Renamed uploads to images 2019-02-24 11:18:45 +07:00
index.js Reverted & Solved apiType differently 2019-02-26 08:33:10 +01:00
integrations.js
invites.js
mail.js
members.js Added new admin API for members (#10435) 2019-01-30 17:06:09 +05:30
notifications.js
oembed.js
pages-public.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
pages.js Fixed previews not reflecting changes to scheduled posts on Ghost(Pro) (#10601) 2019-03-12 18:35:54 +00:00
posts-public.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
posts.js Fixed previews not reflecting changes to scheduled posts on Ghost(Pro) (#10601) 2019-03-12 18:35:54 +00:00
preview.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
redirects.js
roles.js
session.js
settings-public.js
settings.js 🐛 Fixed 404 when trying to update codeinjection_* settings in Admin API v2 2019-03-04 22:59:13 +01:00
site.js Added public /site endpoint to Admin API v2 2019-02-25 13:24:19 +01:00
slack.js
slugs.js
subscribers.js 🐛 Fixed files staying in temp directory after upload is done 2019-01-30 09:24:29 +00:00
tags-public.js
tags.js Skiped 'all' validations for posts/tags endpoints 2019-02-15 12:19:49 +00:00
themes.js Added back "theme.uploaded" analytics event (#10450) 2019-02-05 17:38:40 +01:00
users.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
webhooks.js Required "event" & "target_url" for webhook creation 2019-02-07 23:21:59 +01:00