From 53d375efd513e9a9c5d6bb1fbfabdecab94d2f5f Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Wed, 19 Feb 2020 23:14:53 +0000 Subject: [PATCH] Create views.py --- lnbits/extensions/example/views.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lnbits/extensions/example/views.py diff --git a/lnbits/extensions/example/views.py b/lnbits/extensions/example/views.py new file mode 100644 index 0000000..9e3daf0 --- /dev/null +++ b/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" + )