Python: Support flask.blueprints.Blueprint

Thanks to @haby0 who originally proposed this as part of
https://github.com/github/codeql/pull/6977
This commit is contained in:
Rasmus Wriedt Larsen
2021-10-28 14:02:03 +02:00
parent e8895686f8
commit a33a8fd518
2 changed files with 7 additions and 3 deletions

View File

@@ -105,8 +105,8 @@ def bp1_example(foo): # $ requestHandler routedParameter=foo
app.register_blueprint(bp1) # by default, URLs of blueprints are not prefixed
bp2 = flask.Blueprint("bp2", __name__)
import flask.blueprints
bp2 = flask.blueprints.Blueprint("bp2", __name__)
@bp2.route("/example") # $ routeSetup="/example"
def bp2_example(): # $ requestHandler