mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-28 12:56:16 +02:00
Merge pull request #1260 from prusnak/duplicit-function-names
let's use unique function names
This commit is contained in:
@@ -147,7 +147,7 @@ async def api_hits(
|
|||||||
|
|
||||||
|
|
||||||
@boltcards_ext.get("/api/v1/refunds")
|
@boltcards_ext.get("/api/v1/refunds")
|
||||||
async def api_hits(
|
async def api_refunds(
|
||||||
g: WalletTypeInfo = Depends(get_key_type), all_wallets: bool = Query(False)
|
g: WalletTypeInfo = Depends(get_key_type), all_wallets: bool = Query(False)
|
||||||
):
|
):
|
||||||
wallet_ids = [g.wallet.id]
|
wallet_ids = [g.wallet.id]
|
||||||
|
@@ -30,7 +30,7 @@ async def index(request: Request, user: User = Depends(check_user_exists)):
|
|||||||
|
|
||||||
|
|
||||||
@invoices_ext.get("/pay/{invoice_id}", response_class=HTMLResponse)
|
@invoices_ext.get("/pay/{invoice_id}", response_class=HTMLResponse)
|
||||||
async def index(request: Request, invoice_id: str):
|
async def pay(request: Request, invoice_id: str):
|
||||||
invoice = await get_invoice(invoice_id)
|
invoice = await get_invoice(invoice_id)
|
||||||
|
|
||||||
if not invoice:
|
if not invoice:
|
||||||
|
@@ -171,7 +171,7 @@ async def api_themes_retrieve(wallet: WalletTypeInfo = Depends(get_key_type)):
|
|||||||
|
|
||||||
|
|
||||||
@satspay_ext.delete("/api/v1/themes/{theme_id}")
|
@satspay_ext.delete("/api/v1/themes/{theme_id}")
|
||||||
async def api_charge_delete(theme_id, wallet: WalletTypeInfo = Depends(get_key_type)):
|
async def api_theme_delete(theme_id, wallet: WalletTypeInfo = Depends(get_key_type)):
|
||||||
theme = await get_theme(theme_id)
|
theme = await get_theme(theme_id)
|
||||||
|
|
||||||
if not theme:
|
if not theme:
|
||||||
|
@@ -292,7 +292,7 @@ async def api_psbt_create(
|
|||||||
|
|
||||||
|
|
||||||
@watchonly_ext.put("/api/v1/psbt/utxos")
|
@watchonly_ext.put("/api/v1/psbt/utxos")
|
||||||
async def api_psbt_extract_tx(
|
async def api_psbt_utxos_tx(
|
||||||
req: Request, w: WalletTypeInfo = Depends(require_admin_key)
|
req: Request, w: WalletTypeInfo = Depends(require_admin_key)
|
||||||
):
|
):
|
||||||
"""Extract previous unspent transaction outputs (tx_id, vout) from PSBT"""
|
"""Extract previous unspent transaction outputs (tx_id, vout) from PSBT"""
|
||||||
|
@@ -117,7 +117,7 @@ async def print_qr(request: Request, link_id):
|
|||||||
|
|
||||||
|
|
||||||
@withdraw_ext.get("/csv/{link_id}", response_class=HTMLResponse)
|
@withdraw_ext.get("/csv/{link_id}", response_class=HTMLResponse)
|
||||||
async def print_qr(request: Request, link_id):
|
async def csv(request: Request, link_id):
|
||||||
link = await get_withdraw_link(link_id)
|
link = await get_withdraw_link(link_id)
|
||||||
if not link:
|
if not link:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
|
Reference in New Issue
Block a user