Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion views_lnurl.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
from http import HTTPStatus
from typing import Annotated

from fastapi import APIRouter, HTTPException, Query, Request
from lnbits.core.services import create_invoice
Expand Down Expand Up @@ -150,7 +151,9 @@ async def api_lnurl_callback(
name="lnurlp.api_lnurl_response",
)
async def api_lnurl_response(
request: Request, link_id: str, webhook_data: str | None = Query(None)
request: Request,
link_id: str,
webhook_data: Annotated[str | None, Query()] = None,
) -> LnurlPayResponse:
link = await get_pay_link(link_id)
if not link:
Expand Down