mirror of
https://github.com/lnbits/lnbits.git
synced 2025-07-21 10:22:37 +02:00
Update views_api.py
This commit is contained in:
@ -44,7 +44,7 @@ def api_link_retrieve(link_id):
|
|||||||
|
|
||||||
@withdraw_ext.route("/api/v1/links", methods=["POST"])
|
@withdraw_ext.route("/api/v1/links", methods=["POST"])
|
||||||
@withdraw_ext.route("/api/v1/links/<link_id>", methods=["PUT"])
|
@withdraw_ext.route("/api/v1/links/<link_id>", methods=["PUT"])
|
||||||
@api_check_wallet_key("invoice")
|
@api_check_wallet_key("admin")
|
||||||
@api_validate_post_request(
|
@api_validate_post_request(
|
||||||
schema={
|
schema={
|
||||||
"title": {"type": "string", "empty": False, "required": True},
|
"title": {"type": "string", "empty": False, "required": True},
|
||||||
@ -79,7 +79,7 @@ def api_link_create(link_id=None):
|
|||||||
|
|
||||||
|
|
||||||
@withdraw_ext.route("/api/v1/links/<link_id>", methods=["DELETE"])
|
@withdraw_ext.route("/api/v1/links/<link_id>", methods=["DELETE"])
|
||||||
@api_check_wallet_key("invoice")
|
@api_check_wallet_key("admin")
|
||||||
def api_link_delete(link_id):
|
def api_link_delete(link_id):
|
||||||
link = get_withdraw_link(link_id)
|
link = get_withdraw_link(link_id)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user