diff --git a/config.json b/config.json index 78b2727..79fcab2 100644 --- a/config.json +++ b/config.json @@ -1,7 +1,7 @@ { "name": "Build your own!", "short_description": "Extension building guide", - "tile": "/example/static/bitcoin-extension.png", + "tile": "https://raw.githubusercontent.com/lnbits/example/main/static/bitcoin-extension.png", "min_lnbits_version": "0.12.6", "donate": "donate@legend.lnbits.com", "contributors": [ @@ -18,16 +18,16 @@ ], "images": [ { - "uri": "/example/static/1.png" + "uri": "https://raw.githubusercontent.com/lnbits/example/main/static/1.png" }, { - "uri": "/example/static/2.png" + "uri": "https://raw.githubusercontent.com/lnbits/example/main/static/2.png" }, { - "uri": "/example/static/3.png" + "uri": "https://raw.githubusercontent.com/lnbits/example/main/static/3.png" } ], - "descrition_md": "https://raw.githubusercontent.com/lnbits/example/main/README.md", + "description_md": "https://raw.githubusercontent.com/lnbits/example/main/description.md", "terms_and_conditions_md": "https://raw.githubusercontent.com/lnbits/example/main/toc.md", "license": "MIT" } diff --git a/description.md b/description.md new file mode 100644 index 0000000..fec4196 --- /dev/null +++ b/description.md @@ -0,0 +1,9 @@ +An easily clonable extension that can be used a base for building a new extension. + +THe usual development enviroment is: + +- Clone the myextension repo to your own repo +- Edit the cloned repos manifest to your details +- Install into LNbits +- Delete the cloned extensions folder in your LNbits install +- Create a symbolic link to the extensions folder, from the where you have pulled your extension `ln -s /where/you/cloned/myextension /your/lnbits/installl/lnbits/lnbits/extensions/` diff --git a/views_api.py b/views_api.py index e07ff05..1cbf8d4 100644 --- a/views_api.py +++ b/views_api.py @@ -1,10 +1,11 @@ -from fastapi import APIRouter, Depends -from loguru import logger -from .models import Example from http import HTTPStatus + import httpx +from fastapi import APIRouter, Depends from fastapi.exceptions import HTTPException -from lnbits.decorators import get_key_type, WalletTypeInfo +from lnbits.decorators import WalletTypeInfo, get_key_type + +from .models import Example # views_api.py is for you API endpoints that could be hit by another service