2019-08-09 17:23:12 +03:00
|
|
|
/* 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'
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports.TAXONOMIES = {
|
|
|
|
tag: {
|
|
|
|
filter: 'tags:\'%s\'+tags.visibility:public',
|
2020-04-16 12:23:38 +03:00
|
|
|
editRedirect: '#/tags/:slug/',
|
2019-08-09 17:23:12 +03:00
|
|
|
resource: 'tags'
|
|
|
|
},
|
|
|
|
author: {
|
|
|
|
filter: 'authors:\'%s\'',
|
2020-07-21 13:38:56 +03:00
|
|
|
editRedirect: '#/staff/:slug/',
|
2019-08-09 17:23:12 +03:00
|
|
|
resource: 'authors'
|
|
|
|
}
|
|
|
|
};
|
|
|
|
/* eslint-enable */
|