

def init_app(self, app):
    'Setup the 4 default routes.'
    app.add_url_rule(self.request_token_url, view_func=self.request_token, methods=['POST'])
    app.add_url_rule(self.access_token_url, view_func=self.access_token, methods=['POST'])
    app.add_url_rule(self.register_url, view_func=self.register, methods=['GET', 'POST'])
    app.add_url_rule(app.authorize_url, view_func=self.authorize, methods=['GET', 'POST'])

dataset/ETHPy150Open ib-lundgren/flask-oauthprovider/flask_oauthprovider.py OAuthProvider.init_app/VarMisuse@83/121 `self`->`app`