Пример #1
0
def index():
    """
    ログイン,アカウント作成
    """
    user = check_login()
    if not user:
        return render_template("index.html", prefix=app.config["APPLICATION_ROOT"])

    return render_template("home.html", user=user, prefix=app.config["APPLICATION_ROOT"])
Пример #2
0
 def decorated_function(*args, **kwargs):
     if check_login():
         return f(*args, **kwargs)
     return prep_response({'message': 'This API requires authorization'}, 404)
Пример #3
0
 def decorated_function(*args, **kwargs):
     if check_login():
         return f(*args, **kwargs)
     return redirect("/")