def create_application(debug): """Creates the url router. The basic layouts is as follow: - /restricted/.* requires being an instance administrator. - /stats/.* has statistics. """ acl.bootstrap() template.bootstrap() return webapp2.WSGIApplication(get_routes(), debug=debug)
def create_application(debug): """Creates the url router. The basic layouts is as follow: - /restricted/.* requires being an instance administrator. - /content/.* has the public HTTP API. - /stats/.* has statistics. """ acl.bootstrap() template.bootstrap() routes = get_routes() routes.extend(handlers_api.get_routes()) return webapp2.WSGIApplication(routes, debug=debug)