Update webhook route to accept POST requests
instead of only GET.
This commit is contained in:
parent
70e6cfad00
commit
1caf2a359d
2
wmn.py
2
wmn.py
|
@ -17,7 +17,7 @@ with open("config.yml", 'r') as ymlfile:
|
||||||
cfg = yaml.safe_load(ymlfile)
|
cfg = yaml.safe_load(ymlfile)
|
||||||
|
|
||||||
|
|
||||||
@application.route('/matrix')
|
@application.route('/matrix', options=("HEAD", "POST"))
|
||||||
def notify():
|
def notify():
|
||||||
channel = request.args.get('channel')
|
channel = request.args.get('channel')
|
||||||
if channel is None or len(channel) == 0:
|
if channel is None or len(channel) == 0:
|
||||||
|
|
Loading…
Reference in New Issue