0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/services/routing/assets/resource-config.js
Katharina Irrgang ff6bf5f318 Renamed /users to /authors for Content API V2 (#10096)
refs #10061

- Made /authors endpoint available in Content API V2
2018-11-07 15:29:37 +01:00

62 lines
1.2 KiB
JavaScript

/* eslint-disable */
module.exports.QUERY = {
tag: {
alias: 'tags',
type: 'read',
resource: 'tags',
options: {
slug: '%s',
visibility: 'public'
}
},
author: {
alias: 'authors',
type: 'read',
resource: 'users',
options: {
slug: '%s',
visibility: 'public'
}
},
user: {
alias: 'authors',
type: 'read',
resource: 'users',
options: {
slug: '%s',
visibility: 'public'
}
},
post: {
alias: 'posts',
type: 'read',
resource: 'posts',
options: {
slug: '%s',
status: 'published',
page: 0
}
},
page: {
alias: 'pages',
type: 'read',
resource: 'posts',
options: {
slug: '%s',
status: 'published',
page: 1
}
}
};
module.exports.TAXONOMIES = {
tag: {
filter: 'tags:\'%s\'+tags.visibility:public',
editRedirect: '#/settings/tags/:slug/'
},
author: {
filter: 'authors:\'%s\'',
editRedirect: '#/team/:slug/'
}
};
/* eslint-enable */