mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-10 21:09:34 +02:00
shorten lnurl endpoint URL for smaller QR codes
This commit is contained in:
parent
3ecdad42a5
commit
cfab334d0f
@ -18,7 +18,12 @@ from .crud import increment_pay_link
|
||||
|
||||
|
||||
@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,
|
||||
name="lnurlp.api_lnurl_response",
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user