ghost/admin/mirage/config/webhooks.js
Function mockWebhooks
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function mockWebhooks(server) {
server.get('/webhooks/', paginatedResponse('webhooks'));
server.post('/webhooks/', function ({webhooks}) {
let attrs = this.normalizedRequestAttrs();