added notes

This commit is contained in:
benarc 2024-02-01 17:43:01 +00:00
parent 37d2082082
commit 2c3d7a78ea
3 changed files with 34 additions and 9 deletions

View file

@ -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",
)