mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-10 20:42:32 +02:00
splitpayments auth issues using WalletAdminKeyChecker
This commit is contained in:
@@ -24,6 +24,7 @@ from lnbits.core.crud import get_wallet, get_wallet_for_key
|
|||||||
|
|
||||||
@splitpayments_ext.get("/api/v1/targets")
|
@splitpayments_ext.get("/api/v1/targets")
|
||||||
async def api_targets_get(wallet: WalletTypeInfo = Depends(WalletAdminKeyChecker())):
|
async def api_targets_get(wallet: WalletTypeInfo = Depends(WalletAdminKeyChecker())):
|
||||||
|
print(wallet)
|
||||||
targets = await get_targets(wallet.wallet.id)
|
targets = await get_targets(wallet.wallet.id)
|
||||||
return [target.dict() for target in targets] or []
|
return [target.dict() for target in targets] or []
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user