Merge branch 'master' of github.com:antzucaro/XonStat
[xonotic/xonstat.git] / xonstat / __init__.py
index 2e45a0853d4d47e1815a28f8c1e3a6a37ed44476..3160b7583c2cba36fd2ab88e5b4168ddd952d36d 100644 (file)
@@ -41,6 +41,10 @@ def main(global_config, **settings):
     config.add_view(player_accuracy_json, route_name="player_accuracy",      renderer="json")
     config.add_view(player_accuracy_json, route_name="player_accuracy_json", renderer="json")
 
+    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_view(game_index, route_name="game_index", renderer="game_index.mako")