aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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"