mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user