From b6f0d7b7694426b643e45bb234c63ccc7b2f8a70 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sun, 25 Dec 2022 18:49:51 +0100 Subject: [PATCH] feat: api health check endpoint --- lnbits/core/views/api.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lnbits/core/views/api.py b/lnbits/core/views/api.py index 2bd19978..c497c992 100644 --- a/lnbits/core/views/api.py +++ b/lnbits/core/views/api.py @@ -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: