summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--apioforum/__init__.py3
-rw-r--r--apioforum/auth.py5
2 files changed, 8 insertions, 0 deletions
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"
+