From 2c3d7a78ea9d0d0027a16386bd04459094cb65f6 Mon Sep 17 00:00:00 2001 From: benarc Date: Thu, 1 Feb 2024 17:43:01 +0000 Subject: [PATCH] added notes --- lnurl.py | 7 +++--- templates/myextension/index.html | 32 +++++++++++++++++++++----- templates/myextension/myextension.html | 4 ++++ 3 files changed, 34 insertions(+), 9 deletions(-) diff --git a/lnurl.py b/lnurl.py index 6cdd0bd..53dd575 100644 --- a/lnurl.py +++ b/lnurl.py @@ -1,4 +1,4 @@ -# Maybe your extensions needs some LNURL stuff. +# Maybe your extension needs some LNURL stuff. # Here is a very simple example of how to do it. # Feel free to delete this file if you don't need it. @@ -82,11 +82,12 @@ async def api_lnurl_pay_cb( ######## A very simple LNURLwithdraw ############ # https://github.com/lnurl/luds/blob/luds/03.md # ################################################# +## withdraws are unique, removing 'tickerhash' ## +## here and crud.py will allow muliple pulls #### ################################################# - @myextension_ext.get( - "/api/v1/lnurl/withdraw/{myextension_id}/{tickerhash}/", + "/api/v1/lnurl/withdraw/{myextension_id}/{tickerhash}", status_code=HTTPStatus.OK, name="myextension.api_lnurl_withdraw", ) diff --git a/templates/myextension/index.html b/templates/myextension/index.html index f4612de..440836c 100644 --- a/templates/myextension/index.html +++ b/templates/myextension/index.html @@ -1,3 +1,7 @@ + + + + {% extends "base.html" %} {% from "macros.jinja" import window_vars with context %} {% block page %}
@@ -80,6 +84,10 @@
+ + + + @@ -102,10 +110,12 @@ + + + + - - @@ -135,19 +145,20 @@ - -
- Close
+ {% endblock %} {% block scripts %} {{ window_vars(user) }}