mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 09:22:49 +03:00
3b6cdc2bc5
refs https://github.com/TryGhost/Toolbox/issues/308 - we have a pattern of using plurals around Ghost but this was singular - this shouldn't change any API functionality, it's just code refactoring
60 lines
1.2 KiB
JavaScript
60 lines
1.2 KiB
JavaScript
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'
|
|
}
|
|
},
|
|
previews: {
|
|
controller: 'previews',
|
|
resource: 'previews'
|
|
},
|
|
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'
|
|
}
|
|
};
|