Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions config.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -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"
}
9 changes: 9 additions & 0 deletions description.md
Original file line number Diff line number Diff line change
@@ -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/`
9 changes: 5 additions & 4 deletions views_api.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down