lobby redirect to / if no gameid was given
This commit is contained in:
parent
c11985edbf
commit
9287a9f30a
@ -22,10 +22,17 @@ def licenses():
|
|||||||
def legal():
|
def legal():
|
||||||
return flask.render_template("legal.html")
|
return flask.render_template("legal.html")
|
||||||
|
|
||||||
|
@routes_ui.route("/lobby")
|
||||||
|
def lobbyRedirect():
|
||||||
|
return flask.redirect("/")
|
||||||
|
|
||||||
|
|
||||||
@routes_ui.route("/lobby/<game_id>")
|
@routes_ui.route("/lobby/<game_id>")
|
||||||
def lobby(game_id):
|
def lobby(game_id):
|
||||||
# rendered by the javascript client-side
|
# rendered by the javascript client-side
|
||||||
|
print(game_id)
|
||||||
|
if game_id is None:
|
||||||
|
return flask.redirect("")
|
||||||
return flask.render_template("lobby.html", gameid=game_id)
|
return flask.render_template("lobby.html", gameid=game_id)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user