Skip to content

Commit 7bd1985

Browse files
committed
JS: Add proxy as a route handler name
1 parent 7848369 commit 7bd1985

File tree

1 file changed

+2
-1
lines changed
  • javascript/ql/lib/semmle/javascript/frameworks

1 file changed

+2
-1
lines changed

javascript/ql/lib/semmle/javascript/frameworks/Next.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ module NextJS {
310310
)
311311
|
312312
this =
313-
mod.getAnExportedValue([any(Http::RequestMethodName m), "middleware"]).getAFunctionValue()
313+
mod.getAnExportedValue([any(Http::RequestMethodName m), "middleware", "proxy"])
314+
.getAFunctionValue()
314315
)
315316
}
316317

0 commit comments

Comments
 (0)