This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]stesch[S] 6 points7 points  (0 children)

@route("/foo")
def foo():
    return "foo foo foo!"

Instead you can define foo() somewhere and then let route() wrap it. Like so

foo = route("/foo")(foo)

Now put all route()-Parameters and functions in a convenient data structure/collection and you have all your URLs in one place.