lnbits-legend/lnbits/extensions/example/views.py

15 lines
366 B
Python
Raw Normal View History

2020-02-19 23:14:53 +00:00
#add your dependencies here
2020-02-19 23:16:06 +00:00
2020-02-19 23:14:53 +00:00
from flask import jsonify, render_template, request, redirect, url_for
from lnbits.db import open_db, open_ext_db
2020-02-19 23:15:50 +00:00
from lnbits.extensions.example import example_ext
2020-02-19 23:14:53 +00:00
#add your endpoints here
@example_ext.route("/")
def index():
"""Try to add descriptions for others."""
return render_template(
"example/index.html"
)