mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-25 07:07:48 +01:00
17 lines
408 B
Python
17 lines
408 B
Python
from fastapi import APIRouter
|
|
|
|
from lnbits.db import Database
|
|
from lnbits.helpers import template_renderer
|
|
|
|
db = Database("ext_streamalerts")
|
|
|
|
streamalerts_ext: APIRouter = APIRouter(
|
|
prefix="/streamalerts",
|
|
tags=["streamalerts"]
|
|
)
|
|
|
|
def streamalerts_renderer():
|
|
return template_renderer(["lnbits/extensions/streamalerts/templates"])
|
|
|
|
from .views import * # noqa
|
|
from .views_api import * # noqa
|