2019-08-09 19:53:12 +05:30
|
|
|
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'
|
|
|
|
}
|
|
|
|
},
|
2022-04-26 13:26:40 +01:00
|
|
|
previews: {
|
|
|
|
controller: 'previews',
|
|
|
|
resource: 'previews'
|
2021-08-13 12:09:11 +04:00
|
|
|
},
|
|
|
|
email: {
|
|
|
|
controller: 'emailPost',
|
|
|
|
resource: 'email_posts',
|
|
|
|
options: {
|
|
|
|
slug: '%s'
|
|
|
|
}
|
2019-08-09 19:53:12 +05:30
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports.TAXONOMIES = {
|
|
|
|
tag: {
|
|
|
|
filter: 'tags:\'%s\'+tags.visibility:public',
|
2020-04-16 21:23:38 +12:00
|
|
|
editRedirect: '#/tags/:slug/',
|
2019-08-09 19:53:12 +05:30
|
|
|
resource: 'tags'
|
|
|
|
},
|
|
|
|
author: {
|
|
|
|
filter: 'authors:\'%s\'',
|
2022-01-10 16:56:33 +00:00
|
|
|
editRedirect: '#/settings/staff/:slug/',
|
2019-08-09 19:53:12 +05:30
|
|
|
resource: 'authors'
|
|
|
|
}
|
|
|
|
};
|