splitpayments auth issues using WalletAdminKeyChecker
This commit is contained in:
parent
cf6fae2ca7
commit
cfd37ec31e
1 changed files with 1 additions and 0 deletions
|
|
@ -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 []
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue