shorten lnurl endpoint URL for smaller QR codes
This commit is contained in:
@@ -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",
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user