Browse Source

Create views.py

fee_issues
Arc 5 years ago
committed by GitHub
parent
commit
53d375efd5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      lnbits/extensions/example/views.py

13
lnbits/extensions/example/views.py

@ -0,0 +1,13 @@
#add your dependencies here
from flask import jsonify, render_template, request, redirect, url_for
from lnbits.db import open_db, open_ext_db
from lnbits.extensions.events import events_ext
#add your endpoints here
@example_ext.route("/")
def index():
"""Try to add descriptions for others."""
return render_template(
"example/index.html"
)
Loading…
Cancel
Save