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."]
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."]
"""