Ghost/core/server/api/canary/roles.js

20 lines
386 B
JavaScript
Raw Normal View History

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);
}
}
};