feat: extracted
This commit is contained in:
parent
462770be40
commit
4b82905f78
12 changed files with 573 additions and 0 deletions
27
__init__.py
Normal file
27
__init__.py
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import asyncio
|
||||
|
||||
from fastapi import APIRouter
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
|
||||
from lnbits.db import Database
|
||||
from lnbits.helpers import template_renderer
|
||||
|
||||
db = Database("ext_nostrrelay")
|
||||
|
||||
nostrrelay_ext: APIRouter = APIRouter(prefix="/nostrrelay", tags=["NostrRelay"])
|
||||
|
||||
nostrrelay_static_files = [
|
||||
{
|
||||
"path": "/nostrrelay/static",
|
||||
"app": StaticFiles(directory="lnbits/extensions/nostrrelay/static"),
|
||||
"name": "nostrrelay_static",
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
def nostrrelay_renderer():
|
||||
return template_renderer(["lnbits/extensions/nostrrelay/templates"])
|
||||
|
||||
|
||||
from .views import * # noqa
|
||||
from .views_api import * # noqa
|
||||
Loading…
Add table
Add a link
Reference in a new issue