The /hook route should not require token authentication - authentication is up to the hook implementation

This commit is contained in:
Fabio Manganiello 2021-02-24 22:21:01 +01:00
parent 076cc6a63e
commit a5f02c6a30

View file

@ -3,8 +3,7 @@ import json
from flask import Blueprint, abort, request, Response
from platypush.backend.http.app import template_folder
from platypush.backend.http.app.utils import authenticate, logger, send_message
from platypush.backend.http.app.utils import logger, send_message
from platypush.message.event.http.hook import WebhookEvent
@ -17,7 +16,6 @@ __routes__ = [
@hook.route('/hook/<hook_name>', methods=['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'])
@authenticate(skip_auth_methods=['session'])
def _hook(hook_name):
""" Endpoint for custom webhooks """