Skip to content

Commit e9f9bca

Browse files
talvasconcelosdni
andauthored
allow custom path (#9)
* allow custom path * update to 0.11.0 --------- Co-authored-by: dni ⚡ <office@dnilabs.com>
1 parent 60641c9 commit e9f9bca

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import asyncio
22

33
from fastapi import APIRouter
4-
from fastapi.staticfiles import StaticFiles
54

65
from lnbits.db import Database
76
from lnbits.helpers import template_renderer
@@ -12,15 +11,14 @@
1211
copilot_static_files = [
1312
{
1413
"path": "/copilot/static",
15-
"app": StaticFiles(packages=[("lnbits", "extensions/copilot/static")]),
1614
"name": "copilot_static",
1715
}
1816
]
1917
copilot_ext: APIRouter = APIRouter(prefix="/copilot", tags=["copilot"])
2018

2119

2220
def copilot_renderer():
23-
return template_renderer(["lnbits/extensions/copilot/templates"])
21+
return template_renderer(["copilot/templates"])
2422

2523

2624
from .lnurl import * # noqa

config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
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
}

0 commit comments

Comments
 (0)