Arc
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
lnbits/extensions/tpos/views.py
|
|
@ -2,13 +2,17 @@ import uuid |
|
|
|
import json |
|
|
|
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.extensions.tpos import tpos_ext |
|
|
|
|
|
|
|
#add your endpoints here |
|
|
|
|
|
|
|
@tpos_ext.route("/") |
|
|
|
@validate_uuids(["usr"], required=True) |
|
|
|
@check_user_exists() |
|
|
|
def index(): |
|
|
|
"""Try to add descriptions for others.""" |
|
|
|
usr = request.args.get("usr") |
|
|
|