feat: extracted

This commit is contained in:
Vlad Stan 2023-01-30 14:40:55 +02:00
parent 462770be40
commit 4b82905f78
12 changed files with 573 additions and 0 deletions

27
__init__.py Normal file
View 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