예제 #1
0
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)
예제 #2
0
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)
예제 #3
0
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)
예제 #4
0
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)