Arc
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
lnbits/extensions/example/views_api.py
|
@ -2,6 +2,8 @@ |
|
|
|
|
|
|
|
|
#add your dependencies here |
|
|
#add your dependencies here |
|
|
|
|
|
|
|
|
|
|
|
import json |
|
|
|
|
|
import requests |
|
|
from flask import jsonify, render_template, request, redirect, url_for |
|
|
from flask import jsonify, render_template, request, redirect, url_for |
|
|
from lnbits.db import open_db, open_ext_db |
|
|
from lnbits.db import open_db, open_ext_db |
|
|
from lnbits.extensions.example import example_ext |
|
|
from lnbits.extensions.example import example_ext |
|
@ -13,5 +15,4 @@ def api_example(): |
|
|
"""Try to add descriptions for others.""" |
|
|
"""Try to add descriptions for others.""" |
|
|
#YOUR-CODE |
|
|
#YOUR-CODE |
|
|
|
|
|
|
|
|
return jsonify({"status": "TRUE"), 200 |
|
|
return jsonify({"status": "TRUE"}), 200 |
|
|
|
|
|
|
|
|