mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 14:51:05 +01:00
18 lines
474 B
Python
18 lines
474 B
Python
import asyncio
|
|
from fastapi import APIRouter, FastAPI
|
|
from fastapi.staticfiles import StaticFiles
|
|
from starlette.routing import Mount
|
|
from lnbits.db import Database
|
|
from lnbits.helpers import template_renderer
|
|
from lnbits.tasks import catch_everything_and_restart
|
|
|
|
db = Database("ext_ngrok")
|
|
|
|
ngrok_ext: APIRouter = APIRouter(prefix="/ngrok", tags=["ngrok"])
|
|
|
|
|
|
def ngrok_renderer():
|
|
return template_renderer(["lnbits/extensions/ngrok/templates"])
|
|
|
|
|
|
from .views import *
|