config.add_route("login", "/login")
config.add_view(login, route_name="login", check_csrf=True, renderer="json")
- config.add_route("merge", "/merge")
- config.add_view(route_name="merge", renderer="merge.mako", permission="merge")
+ config.add_route("merge", "/merge")
+ config.add_view(merge, route_name="merge", renderer="merge.mako")
return config.make_wsgi_app()
from xonstat.views.main import main_index, top_players_by_time, top_servers_by_players
from xonstat.views.main import top_servers_by_players, top_maps_by_times_played
-from xonstat.views.admin import forbidden, login
+from xonstat.views.admin import forbidden, login, merge