1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/mirage/config/roles.js
Austin Burdine abfcc4f7ff deps: ember-cli-mirage@0.2.0
- remove lodash from bower
- move all resources to /mirage instead of /app/mirage
- update endpoints to use ORM
- general cleanup
2017-01-13 15:59:37 +00:00

10 lines
249 B
JavaScript

export default function mockRoles(server) {
server.get('/roles/', function ({roles}, {queryParams}) {
if (queryParams.permissions === 'assign') {
return roles.find([1, 2, 3]);
}
return roles.all();
});
}