lnbits-legend/lnbits/extensions/example
fiatjaf 9185342c72 simplify environment variables required.
instead of multiple keys/macaroons with different permissions we request only one.
if someone wants to use lnbits with an invoice macaroon they're free to do it and
we will just fail on 'pay' methods, as before.

this also grandfathers the previous environment variables names so everything keeps
working without people having to change their setups.

in the meantime some bugs with lntxbot and c-lightning were fixed and the `requests`
dependency was eliminated because I can't organize myself into meaningful chunks of
changes.
2020-10-08 16:03:21 -03:00
..
templates/example apply prettier to everything. 2020-05-03 13:55:17 -03:00
__init__.py migrate from flask to quart. 2020-09-14 16:03:25 -03:00
config.json Update and rename config.json.example to config.json 2020-04-16 23:03:12 +01:00
migrations.py migration tracking. 2020-09-04 21:33:30 -03:00
README.md chore: remove pending macaroon mentions 2020-04-21 23:22:01 +02:00
views_api.py simplify environment variables required. 2020-10-08 16:03:21 -03:00
views.py migrate from flask to quart. 2020-09-14 16:03:25 -03:00

Example Extension

*tagline*

This is an example extension to help you organise and build you own.

Try to include an image

If your extension has API endpoints, include useful ones here

curl -H "Content-type: application/json" -X POST https://YOUR-LNBITS/YOUR-EXTENSION/api/v1/EXAMPLE -d '{"amount":"100","memo":"example"}' -H "X-Api-Key: YOUR_WALLET-ADMIN/INVOICE-KEY"