2020-09-13 21:31:05 -03:00
|
|
|
from quart import Blueprint
|
2020-11-21 18:04:39 -03:00
|
|
|
from lnbits.db import Database
|
2020-01-31 21:07:05 +01:00
|
|
|
|
2020-11-21 18:04:39 -03:00
|
|
|
db = Database("database")
|
2020-01-31 21:07:05 +01:00
|
|
|
|
2020-09-13 21:31:05 -03:00
|
|
|
core_app: Blueprint = Blueprint(
|
|
|
|
"core", __name__, template_folder="templates", static_folder="static", static_url_path="/core/static"
|
|
|
|
)
|
2020-01-31 21:07:05 +01:00
|
|
|
|
|
|
|
|
2020-03-08 23:00:41 +01:00
|
|
|
from .views.api import * # noqa
|
|
|
|
from .views.generic import * # noqa
|
2020-10-06 01:50:55 -03:00
|
|
|
from .tasks import register_listeners
|
2020-09-29 18:24:08 -03:00
|
|
|
|
2020-10-06 01:50:55 -03:00
|
|
|
from lnbits.tasks import record_async
|
2020-10-06 00:39:54 -03:00
|
|
|
|
2020-10-06 01:50:55 -03:00
|
|
|
core_app.record(record_async(register_listeners))
|