Added functools.wraps, otherwise all the requests matched the last route