mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-23 22:47:05 +01:00
readd global baseurl needed for lnurlp
This commit is contained in:
parent
e186422439
commit
d862598179
1 changed files with 4 additions and 0 deletions
|
@ -58,6 +58,10 @@ def create_app() -> FastAPI:
|
|||
name="core_static",
|
||||
)
|
||||
|
||||
# needed for lnurlw?
|
||||
# g().config = settings
|
||||
g().base_url = f"http://{settings.host}:{settings.port}"
|
||||
|
||||
app.add_middleware(
|
||||
CORSMiddleware, allow_origins=["*"], allow_methods=["*"], allow_headers=["*"]
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue