ghost/admin/mirage/config/users.js
Function mockUsers
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function mockUsers(server) {
// /users/me = Always return the user with ID=1
server.get('/users/me/', function ({users}) {
let user = users.find(1);