Ejemplo n.º 1
0
def app(environ, start_response):
  if environ["PATH_INFO"] == "/":
    return redirect(environ, start_response)
  if environ["PATH_INFO"] == "/storage":
    return storage.app(environ, start_response)
  start_response("404 Not Found", [])
  return [b"Page not found."]
Ejemplo n.º 2
0
def app(environ, start_response):
    if environ["PATH_INFO"] == "/":
        return redirect(environ, start_response)
    if environ["PATH_INFO"] == "/submit":
        return submit(environ, start_response)
    if environ["PATH_INFO"] == "/fetch":
        return fetch(environ, start_response)
    if environ["PATH_INFO"] == "/storage":
        return storage.app(environ, start_response)
    if environ["PATH_INFO"] == "/expiration":
        return expiration.app(environ, start_response)
    start_response("404 Not Found", [])
    return [b"Page not found."]
Ejemplo n.º 3
0
"""