File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import asyncio
22
33from fastapi import APIRouter
4- from fastapi .staticfiles import StaticFiles
54
65from lnbits .db import Database
76from lnbits .helpers import template_renderer
1211copilot_static_files = [
1312 {
1413 "path" : "/copilot/static" ,
15- "app" : StaticFiles (packages = [("lnbits" , "extensions/copilot/static" )]),
1614 "name" : "copilot_static" ,
1715 }
1816]
1917copilot_ext : APIRouter = APIRouter (prefix = "/copilot" , tags = ["copilot" ])
2018
2119
2220def copilot_renderer ():
23- return template_renderer (["lnbits/extensions/ copilot/templates" ])
21+ return template_renderer (["copilot/templates" ])
2422
2523
2624from .lnurl import * # noqa
Original file line number Diff line number Diff line change 33 "short_description" : " Video tips/animations/webhooks" ,
44 "tile" : " /copilot/static/bitcoin-streaming.png" ,
55 "contributors" : [" arcbtc" ],
6+ "min_lnbits_version" : " 0.11.0" ,
67 "is_installed" : true
78}
You can’t perform that action at this time.
0 commit comments