def __init__(self, app=None, urlprefix='/direct', namespace='Ext.app',
                 name='Ext.app.REMOTING_API'):
        self.urlprefix = urlprefix
        self.ns = namespace
        self.name = name
        self.defs = {}
        self.registry = {}
        self.before_request_funcs = {}

        if app is not None:
            self.app = app
            self.init_app(app)
        else:
            self.app = None
dataset/ETHPy150Open paparent/Flask-ExtDirect/flaskext/extdirect.py/ExtDirect.__init__/original