forked from Ailur/burgernotes-server
Added version text
This commit is contained in:
parent
2f35c0a70e
commit
df37f8cf33
6
main
6
main
|
@ -119,6 +119,10 @@ def privacy():
|
||||||
return render_template("privacy.html")
|
return render_template("privacy.html")
|
||||||
|
|
||||||
# API
|
# API
|
||||||
|
@app.route("/api/version", methods=("GET", "POST"))
|
||||||
|
def apiuserinfo():
|
||||||
|
return "PageBurger Version 1.1"
|
||||||
|
|
||||||
@app.route("/api/signup", methods=("GET", "POST"))
|
@app.route("/api/signup", methods=("GET", "POST"))
|
||||||
def apisignup():
|
def apisignup():
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
|
@ -131,7 +135,7 @@ def apisignup():
|
||||||
|
|
||||||
if len(username) > 20:
|
if len(username) > 20:
|
||||||
return {}, 422
|
return {}, 422
|
||||||
|
|
||||||
if not username.isalnum():
|
if not username.isalnum():
|
||||||
return {}, 422
|
return {}, 422
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue