From a9b597bd5582f577312ec1e5b89876389937f468 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 18 Aug 2013 14:42:10 -0400 Subject: [PATCH] Reorder views for proper precedence. --- xonstat/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xonstat/__init__.py b/xonstat/__init__.py index 2ddf509..bfe2a9f 100644 --- a/xonstat/__init__.py +++ b/xonstat/__init__.py @@ -45,13 +45,13 @@ def main(global_config, **settings): config.add_route("player_game_index_json", "/player/{player_id:\d+}/games.json") config.add_view(player_game_index_json, route_name="player_game_index_json", renderer="jsonp") + config.add_route("player_info", "/player/{id:\d+}") + config.add_view(player_info, route_name="player_info", renderer="player_info.mako") + #config.add_route("player_hashkey_info_text", "/player/me") config.add_route("player_hashkey_info_text", "/player/{hashkey}") config.add_view(player_hashkey_info_text, route_name="player_hashkey_info_text", renderer="player_hashkey_info_text.mako") - config.add_route("player_info", "/player/{id:\d+}") - config.add_view(player_info, route_name="player_info", renderer="player_info.mako") - config.add_route("player_info_json", "/player/{id:\d+}.json") config.add_view(player_info_json, route_name="player_info_json", renderer="jsonp") -- 2.39.2