aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcitrons <citrons>2021-08-07 22:11:53 +0000
committercitrons <citrons>2021-08-07 22:11:53 +0000
commit4fc9f3daf2f241639d9b343caa9684615bbecb29 (patch)
tree85899578fd0b2c13e92f9de0ded1c5e7fe8cf19b
parent2cbb238d80533cf06b1b6a7e1353843a0f583dea (diff)
tucking this away
-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"
+