def init_app(self, app):
        self.app.add_url_rule('%s/api' % self.urlprefix, 'directapi', self.api)
        self.app.add_url_rule('%s/router' % self.urlprefix, 'directrouter',
                              self.router, methods=['POST'])
dataset/ETHPy150Open paparent/Flask-ExtDirect/flaskext/extdirect.py/ExtDirect.init_app/original