Adding frontend page

This commit is contained in:
ben
2022-09-26 10:30:48 +01:00
parent f4439974e4
commit 69c7cdb49f
7 changed files with 85 additions and 29 deletions
+2 -6
View File
@@ -91,18 +91,14 @@ async def api_gerty_satoshi():
@gerty_ext.get("/api/v1/gerty/{gerty_id}")
async def api_gerty_json(
gerty_id: str, wallet: WalletTypeInfo = Depends(require_admin_key)
gerty_id: str
):
gerty = await get_gerty(gerty_id)
logger.debug(gerty.wallet)
if not gerty:
raise HTTPException(
status_code=HTTPStatus.NOT_FOUND, detail="Gerty does not exist."
)
if gerty.wallet != wallet.wallet.id:
raise HTTPException(
status_code=HTTPStatus.FORBIDDEN,
detail="Come on, seriously, this isn't your Gerty!",
)
gertyReturn = []
if gerty.lnbits_wallets != "":
gertyReturn.append(gerty.lnbitsWallets)