]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/__init__.py
Add server index and template. Fix links on player index and template.
[xonotic/xonstat.git] / xonstat / __init__.py
index 06337537d0f1505373deaaf99ddbec0e27acdc7e..49aab4fe285019aafa87f5a132966bdbe7cf98a4 100755 (executable)
@@ -55,6 +55,13 @@ def main(global_config, **settings):
             renderer='game_info.mako') 
 
     # SERVER ROUTES
+    config.add_route(name="server_index_paged", 
+            pattern="/servers/page/{page:\d+}", view=server_index, 
+            renderer='server_index.mako') 
+
+    config.add_route(name="server_index", pattern="/servers", view=server_index, 
+            renderer='server_index.mako') 
+
     config.add_route(name="server_game_index", 
             pattern="/server/{server_id:\d+}/games/page/{page:\d+}", 
             view=server_game_index, renderer='server_game_index.mako')