feat: deeplinks support (#58)

* feat: deeplinks support

* fix: move href logic into compute

* chore: fix linting
This commit is contained in:
Tiago Vasconcelos 2025-06-16 14:17:08 +01:00 committed by GitHub
commit b86263cefa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 72 additions and 1 deletions

View file

@ -5,7 +5,7 @@ from fastapi import Query, Request
from lnurl import Lnurl
from lnurl import encode as lnurl_encode
from lnurl.types import LnurlPayMetadata
from pydantic import BaseModel
from pydantic import BaseModel, Field
ZERO_KEY = "00000000000000000000000000000000"
@ -71,3 +71,8 @@ class Refund(BaseModel):
hit_id: str
refund_amount: int
time: datetime
class UIDPost(BaseModel):
UID: str = Field(None, description="The UID of the card.")
LNURLW: str = Field(None, description="The LNURLW of the card.")