X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonstat.git;a=blobdiff_plain;f=xonstat%2F__init__.py;h=3160b7583c2cba36fd2ab88e5b4168ddd952d36d;hp=2e45a0853d4d47e1815a28f8c1e3a6a37ed44476;hb=ab01b511f02a52d5386be63f228f9237b0e4586f;hpb=678b131718d039ea912c8458a3db9264c8d9e883 diff --git a/xonstat/__init__.py b/xonstat/__init__.py index 2e45a08..3160b75 100644 --- a/xonstat/__init__.py +++ b/xonstat/__init__.py @@ -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")