async invoice listeners through webhooks: lnpay and opennode.

This commit is contained in:
fiatjaf
2020-10-04 12:04:49 -03:00
parent 74117ffc57
commit 2c92205703
4 changed files with 64 additions and 15 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ def register_request_hooks(app: Quart):
def register_async_tasks(app):
from lnbits.core.tasks import invoice_listener, webhook_handler
@app.route("/wallet/webhook")
@app.route("/wallet/webhook", methods=["GET", "POST", "PUT", "PATCH", "DELETE"])
async def webhook_listener():
return await webhook_handler()