2018-06-24 01:32:01 +03:00
|
|
|
/* eslint-disable */
|
|
|
|
module.exports.QUERY = {
|
|
|
|
tag: {
|
2019-01-04 23:59:39 +03:00
|
|
|
controller: 'tags',
|
2018-06-24 01:32:01 +03:00
|
|
|
type: 'read',
|
|
|
|
resource: 'tags',
|
|
|
|
options: {
|
|
|
|
slug: '%s',
|
|
|
|
visibility: 'public'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
author: {
|
2019-01-04 23:59:39 +03:00
|
|
|
resourceAlias: 'authors',
|
|
|
|
controller: 'users',
|
2018-08-16 12:48:33 +03:00
|
|
|
type: 'read',
|
|
|
|
resource: 'users',
|
|
|
|
options: {
|
|
|
|
slug: '%s',
|
|
|
|
visibility: 'public'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
user: {
|
2019-01-04 23:59:39 +03:00
|
|
|
resourceAlias: 'authors',
|
|
|
|
controller: 'users',
|
2018-06-24 01:32:01 +03:00
|
|
|
type: 'read',
|
|
|
|
resource: 'users',
|
|
|
|
options: {
|
|
|
|
slug: '%s',
|
|
|
|
visibility: 'public'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
post: {
|
2019-01-04 23:59:39 +03:00
|
|
|
controller: 'posts',
|
2018-06-24 01:32:01 +03:00
|
|
|
type: 'read',
|
|
|
|
resource: 'posts',
|
|
|
|
options: {
|
|
|
|
slug: '%s',
|
|
|
|
status: 'published',
|
|
|
|
page: 0
|
|
|
|
}
|
|
|
|
},
|
|
|
|
page: {
|
2019-01-04 23:59:39 +03:00
|
|
|
controller: 'posts',
|
2018-06-24 01:32:01 +03:00
|
|
|
type: 'read',
|
|
|
|
resource: 'posts',
|
|
|
|
options: {
|
|
|
|
slug: '%s',
|
|
|
|
status: 'published',
|
|
|
|
page: 1
|
|
|
|
}
|
2019-01-04 23:59:39 +03:00
|
|
|
},
|
|
|
|
preview: {
|
|
|
|
controller: 'posts',
|
|
|
|
resource: 'posts'
|
2018-06-24 01:32:01 +03:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports.TAXONOMIES = {
|
|
|
|
tag: {
|
|
|
|
filter: 'tags:\'%s\'+tags.visibility:public',
|
2019-01-04 23:59:39 +03:00
|
|
|
editRedirect: '#/settings/tags/:slug/',
|
|
|
|
resource: 'tags'
|
2018-06-24 01:32:01 +03:00
|
|
|
},
|
|
|
|
author: {
|
|
|
|
filter: 'authors:\'%s\'',
|
2019-01-04 23:59:39 +03:00
|
|
|
editRedirect: '#/team/:slug/',
|
|
|
|
resource: 'authors'
|
2018-06-24 01:32:01 +03:00
|
|
|
}
|
|
|
|
};
|
|
|
|
/* eslint-enable */
|