diff --git a/rpi/controllers/GameController.py b/rpi/controllers/GameController.py index 84f68dc4..cd3a2c72 100644 --- a/rpi/controllers/GameController.py +++ b/rpi/controllers/GameController.py @@ -19,10 +19,11 @@ class GameController: self._auth_token = "0eed89e8-7625-4f8d-bf2a-0872aede0efb" def _register_routes(self, app): - app.add_url_rule("/command/party/start", view_func=self.start_party, methods=['POST']) + app.add_url_rule("/command/party/start", view_func=self.start_game, methods=['POST']) + app.add_url_rule("/command/party/stop", view_func=self.stop_game, methods=['POST']) app.add_url_rule("/command/party/play", view_func=self.make_move, methods=['POST']) - def start_party(self): + def start_game(self): try: data = request.get_json() if data is None: