Update views.py
This commit is contained in:
parent
5fb17a9244
commit
676bd24d38
1 changed files with 5 additions and 1 deletions
|
|
@ -2,13 +2,17 @@ import uuid
|
||||||
import json
|
import json
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from flask import jsonify, render_template, request, redirect, url_for
|
from flask import jsonify, render_template, request, redirect, url_for, g
|
||||||
|
|
||||||
|
from lnbits.decorators import check_user_exists, validate_uuids
|
||||||
from lnbits.db import open_db, open_ext_db
|
from lnbits.db import open_db, open_ext_db
|
||||||
from lnbits.extensions.tpos import tpos_ext
|
from lnbits.extensions.tpos import tpos_ext
|
||||||
|
|
||||||
#add your endpoints here
|
#add your endpoints here
|
||||||
|
|
||||||
@tpos_ext.route("/")
|
@tpos_ext.route("/")
|
||||||
|
@validate_uuids(["usr"], required=True)
|
||||||
|
@check_user_exists()
|
||||||
def index():
|
def index():
|
||||||
"""Try to add descriptions for others."""
|
"""Try to add descriptions for others."""
|
||||||
usr = request.args.get("usr")
|
usr = request.args.get("usr")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue