mirror of
https://github.com/lnbits/lnbits.git
synced 2025-07-23 19:25:32 +02:00
Create views.py
This commit is contained in:
13
lnbits/extensions/example/views.py
Normal file
13
lnbits/extensions/example/views.py
Normal file
@@ -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"
|
||||
)
|
Reference in New Issue
Block a user