]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Route the hashkey view to /player/me.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 11 Aug 2013 14:25:48 +0000 (10:25 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 11 Aug 2013 14:25:48 +0000 (10:25 -0400)
xonstat/__init__.py

index 0c14963de48cda94973d8d20e18e129cb09fca06..449d3b93e23f614881e0b0da838ac68dada2a4e1 100644 (file)
@@ -42,17 +42,17 @@ def main(global_config, **settings):
     config.add_route("player_game_index",      "/player/{player_id:\d+}/games")
     config.add_view(player_game_index,      route_name="player_game_index",      renderer="player_game_index.mako")
 
-    config.add_view(player_game_index_json, route_name="player_game_index_json", renderer="jsonp")
     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_hashkey_info_text", "/player/me")
+    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_view(player_info_json, route_name="player_info_json", renderer="jsonp")
     config.add_route("player_info_json", "/player/{id:\d+}.json")
-
-    config.add_route("player_hashkey_info_text", "/hashkey/{hashkey}")
-    config.add_view(player_hashkey_info_text, route_name="player_hashkey_info_text", renderer="player_hashkey_info_text.mako")
+    config.add_view(player_info_json, route_name="player_info_json", renderer="jsonp")
 
     config.add_route("player_elo_info_json", "/elo/{hashkey}")
     config.add_view(player_elo_info_json, route_name="player_elo_info_json", renderer="jsonp")