mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
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();
|
||
|
});
|
||
|
}
|