mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
52b6668955
- remove lodash from bower - move all resources to /mirage instead of /app/mirage - update endpoints to use ORM - general cleanup
10 lines
249 B
JavaScript
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();
|
|
});
|
|
}
|