eb0bc3068c
refs #9866 - Added new controller to v2 API - Added roles tests to v2 API
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);
|
|
}
|
|
}
|
|
};
|