Fix merge conflict, change indentation a bit.
[xonotic/xonstat.git] / xonstat / __init__.py
index 00a4bec1676ad017305cbdd892acb80bd8960a3a..e7bfba387aeb46b69998a113cf85ded34a0c93a3 100644 (file)
@@ -50,6 +50,10 @@ def main(global_config, **settings):
     config.add_view(player_index,      route_name="player_index",      renderer="player_index.mako")
     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="json")
+
     # GAME ROUTES
     config.add_route("game_index",      "/games")
     config.add_route("game_index_json", "/games.json")