Skip to content

Commit

Permalink
allow custom path (#83)
Browse files Browse the repository at this point in the history
* allow custom path

* fix: update min_lnbits_version to 0.11.0

---------

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
  • Loading branch information
talvasconcelos and motorina0 authored Sep 26, 2023
1 parent 0a36bd7 commit 5e06ffa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from typing import List

from fastapi import APIRouter
from starlette.staticfiles import StaticFiles

from lnbits.db import Database
from lnbits.helpers import template_renderer
Expand All @@ -16,14 +15,13 @@
nostrmarket_static_files = [
{
"path": "/nostrmarket/static",
"app": StaticFiles(directory="lnbits/extensions/nostrmarket/static"),
"name": "nostrmarket_static",
}
]


def nostrmarket_renderer():
return template_renderer(["lnbits/extensions/nostrmarket/templates"])
return template_renderer(["nostrmarket/templates"])


from .nostr.nostr_client import NostrClient
Expand Down
3 changes: 2 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"name": "Nostr Market",
"short_description": "Nostr Webshop/market on LNbits",
"tile": "/nostrmarket/static/images/bitcoin-shop.png",
"contributors": []
"contributors": [],
"min_lnbits_version": "0.11.0"
}

0 comments on commit 5e06ffa

Please sign in to comment.