track locations

This commit is contained in:
Fabian Dill
2020-06-23 02:50:07 +02:00
parent ca106ebfee
commit fedec59896
3 changed files with 83 additions and 3 deletions

View File

@@ -111,6 +111,8 @@ processstartlock = threading.Lock()
@app.route('/hosted/<int:room>', methods=['GET', 'POST'])
def host_room(room: int):
room = Room.get(id=room)
if room is None:
return abort(404)
if request.method == "POST":
if room.owner == session["_id"]:
cmd = request.form["cmd"]