mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
7b761a8751
no issue Adds new canary api endpoint, currently replicating v2 endpoint but paving way for future updates to new version
20 lines
386 B
JavaScript
20 lines
386 B
JavaScript
const models = require('../../models');
|
|
|
|
module.exports = {
|
|
docName: 'roles',
|
|
browse: {
|
|
options: [
|
|
'permissions'
|
|
],
|
|
validation: {
|
|
options: {
|
|
permissions: ['assign']
|
|
}
|
|
},
|
|
permissions: true,
|
|
query(frame) {
|
|
return models.Role.findAll(frame.options);
|
|
}
|
|
}
|
|
};
|