Merge pull request #1239 from lnbits/api/health_checl

feat: api health check endpoint
This commit is contained in:
calle
2022-12-25 18:51:40 +01:00
committed by GitHub
+5
View File
@@ -71,6 +71,11 @@ from ..services import (
from ..tasks import api_invoice_listeners
@core_app.get("/api/v1/health", status_code=HTTPStatus.OK)
async def health():
return
@core_app.get("/api/v1/wallet")
async def api_wallet(wallet: WalletTypeInfo = Depends(get_key_type)):
if wallet.wallet_type == 0: