From 4fc9f3daf2f241639d9b343caa9684615bbecb29 Mon Sep 17 00:00:00 2001 From: citrons Date: Sat, 7 Aug 2021 22:11:53 +0000 Subject: tucking this away --- apioforum/__init__.py | 3 +++ apioforum/auth.py | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/apioforum/__init__.py b/apioforum/__init__.py index 087df81..32c15ef 100644 --- a/apioforum/__init__.py +++ b/apioforum/__init__.py @@ -40,6 +40,9 @@ def create_app(): from . import user app.register_blueprint(user.bp) + from . import auth_api + app.register_blueprint(auth_api.bp) + from .fuzzy import fuzzy app.jinja_env.filters['fuzzy']=fuzzy diff --git a/apioforum/auth.py b/apioforum/auth.py index 39cf1f8..f38ea9c 100644 --- a/apioforum/auth.py +++ b/apioforum/auth.py @@ -119,3 +119,8 @@ def cool(): def cooler(): return "bee" +@bp.route("/coolest") +@login_required +def coolest(): + return "apioform" + -- cgit v1.2.3