mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
Batch delete
This commit is contained in:
parent
99d76552ac
commit
1547fddaeb
@ -115,8 +115,8 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "DELETE",
|
||||
"path": "/webhooks",
|
||||
"method": "POST",
|
||||
"path": "/webhooks/batch-delete",
|
||||
"handler": "Webhooks.deleteWebhooks",
|
||||
"config": {
|
||||
"policies": []
|
||||
|
||||
@ -61,7 +61,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
async deleteWebhooks(ctx) {
|
||||
const { ids } = ctx.query;
|
||||
const { ids } = ctx.request.body;
|
||||
|
||||
if (!Array.isArray(ids) || ids.length === 0) {
|
||||
return ctx.badRequest('ids must be an array of id');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user