splitpayments auth issues using WalletAdminKeyChecker

This commit is contained in:
benarc
2021-10-18 13:35:31 +01:00
parent cf6fae2ca7
commit cfd37ec31e

View File

@@ -24,6 +24,7 @@ from lnbits.core.crud import get_wallet, get_wallet_for_key
@splitpayments_ext.get("/api/v1/targets")
async def api_targets_get(wallet: WalletTypeInfo = Depends(WalletAdminKeyChecker())):
print(wallet)
targets = await get_targets(wallet.wallet.id)
return [target.dict() for target in targets] or []