Files
threshold-ui/ui/core/mirage/scenarios/default.js
T

27 lines
541 B
JavaScript

export default function(server) {
// Scope resources
server.create('scope', null, 'withChildren');
// Auth
// Auth methods exist both at the global scope and the org scope.
// For simplicity we don't scope our mock auth methods and just return the
// same items for request at all scopes.
server.createList('auth-method', 3);
// User
server.createList('user', 5);
// Role
server.createList('role', 5);
// Groups
server.createList('group', 5);
// Other resources
server.createList('host-catalog', 6);
}