mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-22 06:21:53 +01:00
feat: add support for static files
This commit is contained in:
parent
2b5fc82110
commit
dec8d4b6b3
1 changed files with 8 additions and 0 deletions
|
@ -1,10 +1,18 @@
|
|||
from fastapi import APIRouter
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
|
||||
from lnbits.db import Database
|
||||
from lnbits.helpers import template_renderer
|
||||
|
||||
db = Database("ext_watchonly")
|
||||
|
||||
watchonly_static_files = [
|
||||
{
|
||||
"path": "/watchonly/static",
|
||||
"app": StaticFiles(directory="lnbits/extensions/watchonly/static"),
|
||||
"name": "watchonly_static",
|
||||
}
|
||||
]
|
||||
|
||||
watchonly_ext: APIRouter = APIRouter(prefix="/watchonly", tags=["watchonly"])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue