def route(self, pattern, **kwargs):
        def _decorated(func):
            self.add_route(pattern, func, **kwargs)
            return func
        return _decorated
A decorator that is used to register a new resource using
dataset/ETHPy150Open benoitc/dj-webmachine/webmachine/route.py/WM.route