ghost/admin/mirage/config/integrations.js
Function mockIntegrations
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function mockIntegrations(server) {
server.get('/integrations/', paginatedResponse('integrations'));
server.post('/integrations/', function ({integrations}, {requestBody}) {
let body = JSON.parse(requestBody);