Add stop game endpoint
This commit is contained in:
@@ -19,10 +19,11 @@ class GameController:
|
|||||||
self._auth_token = "0eed89e8-7625-4f8d-bf2a-0872aede0efb"
|
self._auth_token = "0eed89e8-7625-4f8d-bf2a-0872aede0efb"
|
||||||
|
|
||||||
def _register_routes(self, app):
|
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'])
|
app.add_url_rule("/command/party/play", view_func=self.make_move, methods=['POST'])
|
||||||
|
|
||||||
def start_party(self):
|
def start_game(self):
|
||||||
try:
|
try:
|
||||||
data = request.get_json()
|
data = request.get_json()
|
||||||
if data is None:
|
if data is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user