1 2 3 4 5 6 7 8
def route(method, path): if method == "GET": if path == "/": return "home" return "page" if method == "POST": return "create" return "not allowed"