Started watchonly

This commit is contained in:
Ben Arc
2021-08-20 19:48:44 +01:00
parent 58a498d9bf
commit 76cb93b276
2 changed files with 11 additions and 9 deletions
+2 -4
View File
@@ -24,15 +24,13 @@ from .crud import (
###################WALLETS#############################
@watchonly_ext.route("/api/v1/wallet", methods=["GET"])
@watchonly_ext.get("/api/v1/wallet")
@api_check_wallet_key("invoice")
async def api_wallets_retrieve():
try:
return (
jsonify(
[wallet._asdict() for wallet in await get_watch_wallets(g.wallet.user)]
),
[wallet._asdict() for wallet in await get_watch_wallets(g.wallet.user)],
HTTPStatus.OK,
)
except: