mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
620059c7b4
closes https://github.com/TryGhost/Ghost/issues/13942 - Admin routes were updated, and the author page was moved under the settings route, but the /edit redirect was missed
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: '#/settings/staff/:slug/',
|
|
resource: 'authors'
|
|
}
|
|
};
|
|
/* eslint-enable */
|