shorten lnurl endpoint URL for smaller QR codes
This commit is contained in:
parent
3ecdad42a5
commit
cfab334d0f
1 changed files with 6 additions and 1 deletions
|
|
@ -18,7 +18,12 @@ from .crud import increment_pay_link
|
||||||
|
|
||||||
|
|
||||||
@lnurlp_ext.get(
|
@lnurlp_ext.get(
|
||||||
"/api/v1/lnurl/{link_id}",
|
"/api/v1/lnurl/{link_id}", # Backwards compatibility for old codes (with long URL)
|
||||||
|
status_code=HTTPStatus.OK,
|
||||||
|
name="lnurlp.api_lnurl_response",
|
||||||
|
)
|
||||||
|
@lnurlp_ext.get(
|
||||||
|
"/a/{link_id}",
|
||||||
status_code=HTTPStatus.OK,
|
status_code=HTTPStatus.OK,
|
||||||
name="lnurlp.api_lnurl_response",
|
name="lnurlp.api_lnurl_response",
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue