mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-20 02:28:10 +01:00
23 lines
485 B
Python
23 lines
485 B
Python
from quart import Blueprint
|
|
from lnbits.db import Database
|
|
|
|
db = Database("database")
|
|
|
|
core_app: Blueprint = Blueprint(
|
|
"core",
|
|
__name__,
|
|
template_folder="templates",
|
|
static_folder="static",
|
|
static_url_path="/core/static",
|
|
)
|
|
|
|
|
|
from .views.api import * # noqa
|
|
from .views.generic import * # noqa
|
|
from .views.public_api import * # noqa
|
|
from .tasks import register_listeners
|
|
|
|
from lnbits.tasks import record_async
|
|
|
|
core_app.record(record_async(register_listeners))
|