mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
✨ Add DELETE, PATCH and PUT request support to Webhooks
This commit is contained in:
@@ -120,6 +120,10 @@ export class Webhook implements INodeType {
|
||||
name: 'httpMethod',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'DELETE',
|
||||
value: 'DELETE',
|
||||
},
|
||||
{
|
||||
name: 'GET',
|
||||
value: 'GET',
|
||||
@@ -128,10 +132,18 @@ export class Webhook implements INodeType {
|
||||
name: 'HEAD',
|
||||
value: 'HEAD',
|
||||
},
|
||||
{
|
||||
name: 'PATCH',
|
||||
value: 'PATCH',
|
||||
},
|
||||
{
|
||||
name: 'POST',
|
||||
value: 'POST',
|
||||
},
|
||||
{
|
||||
name: 'PUT',
|
||||
value: 'PUT',
|
||||
},
|
||||
],
|
||||
default: 'GET',
|
||||
description: 'The HTTP method to listen to.',
|
||||
@@ -265,6 +277,8 @@ export class Webhook implements INodeType {
|
||||
displayOptions: {
|
||||
show: {
|
||||
'/httpMethod': [
|
||||
'PATCH',
|
||||
'PUT',
|
||||
'POST',
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user