mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-25 15:10:41 +01:00
19 lines
380 B
Python
19 lines
380 B
Python
from fastapi import APIRouter
|
|
|
|
from lnbits.db import Database
|
|
from lnbits.helpers import template_renderer
|
|
|
|
db = Database("ext_example")
|
|
|
|
example_ext: APIRouter = APIRouter(
|
|
prefix="/example",
|
|
tags=["example"]
|
|
)
|
|
|
|
|
|
def example_renderer():
|
|
return template_renderer(["lnbits/extensions/example/templates"])
|
|
|
|
|
|
from .views import * # noqa
|
|
from .views_api import * # noqa
|