summaryrefslogtreecommitdiff
path: root/nick.py
diff options
context:
space:
mode:
authorMarina Jäntti <mjantti@local>2023-11-01 02:45:15 +0200
committerMarina Jäntti <mjantti@local>2023-11-01 02:45:15 +0200
commitd67248c6cab9145ad88d5c16584b58abc7055676 (patch)
treecd655a78837e2908ae42e8b58e904c2603a49e2a /nick.py
parent59a6f10326bc785b84620426c3e5b1405ab6ca39 (diff)
Just initial structure and testing out cookies
Diffstat (limited to 'nick.py')
-rw-r--r--nick.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/nick.py b/nick.py
new file mode 100644
index 0000000..e5f7186
--- /dev/null
+++ b/nick.py
@@ -0,0 +1,10 @@
+from app import app
+from flask import render_template, session, request, redirect
+
+@app.route("/nick",methods=["POST"])
+def set_nick():
+ nick = request.form["nick"]
+ session["nick"] = nick
+ return redirect("/")
+
+