mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 02:41:50 +03:00
74280cfbea
refs https://github.com/TryGhost/Team/issues/953 - Emails posts should be not explorable by the rest of the frontend similarly to the draft or scheduled posts. Email posts should also keep the content gating, so that specific parts of content can still be gated based on the post's visibility setup - A separate frontend router was chosen to implement this part of the system instead of a moutable express app due to increased complexity to introduce the latter approach. - All "sent" email-only posts will be accessible through the `/email/:slug/` route
62 lines
1.2 KiB
JavaScript
62 lines
1.2 KiB
JavaScript
/* eslint-disable */
|
|
module.exports.QUERY = {
|
|
tag: {
|
|
controller: 'tagsPublic',
|
|
type: 'read',
|
|
resource: 'tags',
|
|
options: {
|
|
slug: '%s',
|
|
visibility: 'public'
|
|
}
|
|
},
|
|
author: {
|
|
controller: 'authorsPublic',
|
|
type: 'read',
|
|
resource: 'authors',
|
|
options: {
|
|
slug: '%s'
|
|
}
|
|
},
|
|
post: {
|
|
controller: 'postsPublic',
|
|
type: 'read',
|
|
resource: 'posts',
|
|
options: {
|
|
slug: '%s'
|
|
}
|
|
},
|
|
page: {
|
|
controller: 'pagesPublic',
|
|
type: 'read',
|
|
resource: 'pages',
|
|
options: {
|
|
slug: '%s'
|
|
}
|
|
},
|
|
preview: {
|
|
controller: 'preview',
|
|
resource: 'preview'
|
|
},
|
|
email: {
|
|
controller: 'emailPost',
|
|
resource: 'email_posts',
|
|
options: {
|
|
slug: '%s'
|
|
}
|
|
}
|
|
};
|
|
|
|
module.exports.TAXONOMIES = {
|
|
tag: {
|
|
filter: 'tags:\'%s\'+tags.visibility:public',
|
|
editRedirect: '#/tags/:slug/',
|
|
resource: 'tags'
|
|
},
|
|
author: {
|
|
filter: 'authors:\'%s\'',
|
|
editRedirect: '#/staff/:slug/',
|
|
resource: 'authors'
|
|
}
|
|
};
|
|
/* eslint-enable */
|