From: Ant Zucaro Date: Thu, 5 Sep 2013 18:59:37 +0000 (-0400) Subject: Rename the routes. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2d54f9f2285c361d7336f7ecf09144baf203de91;p=xonotic%2Fxonstat.git Rename the routes. --- diff --git a/xonstat/__init__.py b/xonstat/__init__.py index e055f62..f75ab71 100644 --- a/xonstat/__init__.py +++ b/xonstat/__init__.py @@ -72,16 +72,13 @@ def main(global_config, **settings): config.add_route("player_index_json", "/players.json") config.add_view(player_index_json, route_name="player_index_json", renderer="jsonp") - config.add_route("player_damage", "/player/{id:\d+}/damage") - config.add_view(player_damage_json, route_name="player_damage", renderer="jsonp") - config.add_route("player_captimes", "/player/{id:\d+}/captimes") config.add_view(player_captimes, route_name="player_captimes", renderer="player_captimes.mako") config.add_route("player_captimes_json", "/player/{id:\d+}/captimes.json") config.add_view(player_captimes_json, route_name="player_captimes_json", renderer="jsonp") - config.add_route("nvd3_damage", "/player/{id:\d+}/nvd3-damage") + config.add_route("nvd3_damage", "/player/{id:\d+}/damage") config.add_view(player_nvd3_damage, route_name="nvd3_damage", renderer="nvd3_damage.mako") config.add_route("player_weaponstats_data_json", "/player/{id:\d+}/weaponstats.json")