summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcitrons <citrons>2021-08-07 22:13:47 +0000
committercitrons <citrons>2021-08-07 22:13:47 +0000
commitc853093fe46d3ff2555609c44c69b86a53bcd7d6 (patch)
tree308de404d1b7dacb0e763be7bc77e4de4223ca32
parent4fc9f3daf2f241639d9b343caa9684615bbecb29 (diff)
-rw-r--r--apioforum/auth_api.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/apioforum/auth_api.py b/apioforum/auth_api.py
new file mode 100644
index 0000000..7e30ad5
--- /dev/null
+++ b/apioforum/auth_api.py
@@ -0,0 +1,16 @@
+# log in with apioforum
+
+from flask import (
+ Blueprint, render_template, request,
+ g, redirect, url_for, flash, abort
+)
+
+from .db import get_db
+from secrets import token_hex
+from urllib.parse import urlparse
+
+bp = Blueprint("api", __name__, url_prefix="/api")
+
+@bp.route("/authorize")
+def authorize():
+ return "placeholder"