From df37f8cf33185a5cb6bb9b45487b9bc04cc71a11 Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Fri, 23 Feb 2024 14:35:53 +0000 Subject: [PATCH] Added version text --- main | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main b/main index 8094c68..b954e7b 100644 --- a/main +++ b/main @@ -119,6 +119,10 @@ def privacy(): return render_template("privacy.html") # API +@app.route("/api/version", methods=("GET", "POST")) +def apiuserinfo(): + return "PageBurger Version 1.1" + @app.route("/api/signup", methods=("GET", "POST")) def apisignup(): if request.method == "POST": @@ -131,7 +135,7 @@ def apisignup(): if len(username) > 20: return {}, 422 - + if not username.isalnum(): return {}, 422