change-notes

This commit is contained in:
Kevin Stubbings
2024-08-26 22:25:00 -07:00
parent 0420d25c13
commit 812abea0de
3 changed files with 10 additions and 0 deletions

View File

@@ -36,6 +36,9 @@ module FastApi {
private class AddMiddlewareCall extends DataFlow::CallCfgNode {
AddMiddlewareCall() { this = App::instance().getMember("add_middleware").getACall() }
/**
* Gets the string corresponding to the middleware
*/
string middleware_name() { result = this.getArg(0).asExpr().(Name).toString() }
}

View File

@@ -44,6 +44,9 @@ module Starlette {
this = [App::instance().getMember("add_middleware").getACall(), Middleware::instance()]
}
/**
* Gets the string corresponding to the middleware
*/
string middleware_name() { result = this.getArg(0).asExpr().(Name).toString() }
}