feat: init lnbits_relay_information

This commit is contained in:
Vlad Stan 2023-02-07 12:21:23 +02:00
parent e4197ce66d
commit 4c9d1a4395
3 changed files with 22 additions and 6 deletions

View file

@ -3,6 +3,7 @@ from fastapi.staticfiles import StaticFiles
from lnbits.db import Database
from lnbits.helpers import template_renderer
from lnbits.settings import settings
db = Database("ext_nostrrelay")
@ -23,3 +24,10 @@ def nostrrelay_renderer():
from .views import * # noqa
from .views_api import * # noqa
from .models import NostrRelay
settings.lnbits_relay_information = {
"name": "LNbits Nostr Relay",
"description": "Multiple relays are supported",
**NostrRelay.info()
}