diff --git a/truthseeker/game_api.py b/truthseeker/game_functions.py similarity index 100% rename from truthseeker/game_api.py rename to truthseeker/game_functions.py diff --git a/truthseeker/routes_api.py b/truthseeker/routes_api.py index b04f1a5..c67b9e7 100644 --- a/truthseeker/routes_api.py +++ b/truthseeker/routes_api.py @@ -1,6 +1,6 @@ import flask -from truthseeker import game_api +from truthseeker import game_functions api_routes = flask.Blueprint("api", __name__) @@ -8,7 +8,7 @@ api_routes = flask.Blueprint("api", __name__) def create_game(): response = {} response["status"] = "ok" - response["gameId"] = game_api.create_game().id + response["gameId"] = game_functions.create_game().id return response @api_routes.route("/getGameInfo") @@ -18,7 +18,7 @@ def get_game_info(): if gameid == None: response["status"] = "No 'gameid' argument" return response - game = game_api.get_game_info(gameid) + game = game_functions.get_game_info(gameid) if game == None: response["status"] = "Game {} does not exist".format(gameid) return response