From 0d3e18bf7133bc5504a7b7bcdba35b50c1347c3f Mon Sep 17 00:00:00 2001 From: benarc Date: Wed, 20 Oct 2021 11:57:09 +0100 Subject: [PATCH] Removed unused endpoint --- lnbits/extensions/satsdice/views_api.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/lnbits/extensions/satsdice/views_api.py b/lnbits/extensions/satsdice/views_api.py index 315d823c..69908d48 100644 --- a/lnbits/extensions/satsdice/views_api.py +++ b/lnbits/extensions/satsdice/views_api.py @@ -125,31 +125,6 @@ async def api_link_delete( ##########LNURL withdraw -@satsdice_ext.get("/api/v1/withdraws") -async def api_withdraws( - wallet: WalletTypeInfo = Depends(get_key_type), all_wallets: str = Query(None) -): - wallet_ids = [wallet.wallet.id] - - if all_wallets: - wallet_ids = (await get_user(wallet.wallet.user)).wallet_ids - try: - return ( - jsonify( - [ - {**withdraw._asdict(), **{"lnurl": withdraw.lnurl}} - for withdraw in await get_satsdice_withdraws(wallet_ids) - ] - ), - HTTPStatus.OK, - ) - except LnurlInvalidUrl: - raise HTTPException( - status_code=HTTPStatus.UPGRADE_REQUIRED, - detail="LNURLs need to be delivered over a publically accessible `https` domain or Tor.", - ) - - @satsdice_ext.get("/api/v1/withdraws/{withdraw_id}") async def api_withdraw_retrieve( wallet: WalletTypeInfo = Depends(get_key_type), withdraw_id: str = Query(None)