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

Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
Napalys Klicius
2025-04-11 11:08:40 +02:00
committed by GitHub
parent 2c4b3527b4
commit 92e4f112c0

View File

@@ -283,7 +283,7 @@ module NextJS {
NextAppRouteHandler() {
exists(Module mod |
mod.getFile().getParentContainer() = apiFolder() or
mod.getFile().getBaseName() = ["middleware.ts", "middleware.js"]
mod.getFile().getStem() = "middleware"
|
this =
mod.getAnExportedValue([any(Http::RequestMethodName m), "middleware"]).getAFunctionValue() and