def view(self, rule, **options):
        complete_rule = '/%s%s' % (self.app.config['PREFIX'], self.app.config['ROUTES'][rule])
        def decorator(f):
            self.app.add_url_rule(complete_rule, f.__name__, f, **options)
            return f
        return decorator
Decorator for views
dataset/ETHPy150Open jkossen/flaskjk/viewer.py/Viewer.view