Better fix

This commit is contained in:
Smaug123
2018-01-04 22:09:43 +00:00
parent 86969ebff8
commit 2bdc4621bf
2 changed files with 2 additions and 1 deletions

View File

@@ -246,7 +246,7 @@ class Inform(Resource):
class Game(Resource):
def get(self, game_id, player=None):
def get(self, game_id=None, player=None):
"""
Return the state of the game as viewed by the given player.

View File

@@ -16,6 +16,7 @@ limiter = Limiter(app,
HanabiWeb.hanabi.Game.method_decorators.append(limiter.limit("2 per minute"))
api.add_resource(HanabiWeb.hanabi.Game,
'/game',
'/game/<int:game_id>',
'/game/<int:game_id>/<string:player>')