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"])
def decorated_function(*args, **kwargs): if check_login(): return f(*args, **kwargs) return prep_response({'message': 'This API requires authorization'}, 404)
def decorated_function(*args, **kwargs): if check_login(): return f(*args, **kwargs) return redirect("/")