mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-20 02:28:10 +01:00
tests
This commit is contained in:
parent
88e11b4793
commit
1349f74c45
@ -77,5 +77,5 @@ async def lnurl_callback(cp_id):
|
||||
disposable=False,
|
||||
routes=[],
|
||||
)
|
||||
print(payment_request)
|
||||
print(url_for("copilot.api_copilot_hooker", copilot_id=cp_id, amount=int(amount_received / 1000), _external=False))
|
||||
return jsonify(resp.dict())
|
@ -64,8 +64,9 @@ async def panel(copilot_id):
|
||||
return await render_template("copilot/panel.html", copilot=copilot)
|
||||
|
||||
|
||||
@copilot_ext.route("/api/v1/copilot/hook/<copilot_id>/<amount>", methods=["GET"])
|
||||
@copilot_ext.route("/api/v1/copilot/hook/<copilot_id>/<amount>/", methods=["GET"])
|
||||
async def api_copilot_hooker(copilot_id, amount):
|
||||
print("amount")
|
||||
copilot = await get_copilot(copilot_id)
|
||||
print("amount")
|
||||
if not copilot:
|
||||
|
Loading…
Reference in New Issue
Block a user