Re #65 - Append BASE_URL env var to the notification if it is set (#66)

* Re #65 - Append BASE_URL env var to the notification if it is set
This commit is contained in:
dgtlmoon
2021-05-21 09:16:19 +10:00
committed by GitHub
parent 395a6fca62
commit d50ff0b31c
5 changed files with 30 additions and 5 deletions

View File

@@ -43,8 +43,15 @@ def live_server_setup(live_server):
@live_server.app.route('/test_notification_endpoint', methods=['POST'])
def test_notification_endpoint():
from flask import request
with open("test-datastore/count.txt", "w") as f:
f.write("we hit it")
f.write("we hit it\n")
# Debug method, dump all POST to file also, used to prove #65
data = request.stream.read()
if data != None:
f.write(str(data))
print("\n>> Test notification endpoint was hit.\n")
return "Text was set"