def expose(url='/', methods=('GET',)):
    def wrap(f):
        if not hasattr(f, '_urls'):
            f._urls = []
        f._urls.append((url, methods))
        return f
    return wrap
Use this decorator to expose views in your view classes.
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/base.py/expose