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

12 lines
326 B
Python
Raw Normal View History

from quart import g, render_template
2020-02-19 23:16:06 +00:00
2020-04-03 22:28:25 +02:00
from lnbits.decorators import check_user_exists, validate_uuids
2020-02-19 23:15:50 +00:00
from lnbits.extensions.example import example_ext
2020-02-19 23:14:53 +00:00
@example_ext.route("/")
2020-04-03 22:28:25 +02:00
@validate_uuids(["usr"], required=True)
@check_user_exists()
async def index():
return await render_template("example/index.html", user=g.user)