Added addHook to RouteSetup thus now it is recognized now as rouute handler

This commit is contained in:
Napalys
2025-04-15 09:37:13 +02:00
parent c175081698
commit 9b194ea613
4 changed files with 181 additions and 21 deletions

View File

@@ -138,7 +138,7 @@ module Fastify {
RouteSetup() {
this = server(server).getAMethodCall(methodName) and
methodName = ["route", "get", "head", "post", "put", "delete", "options", "patch"]
methodName = ["route", "get", "head", "post", "put", "delete", "options", "patch", "addHook"]
}
override DataFlow::SourceNode getARouteHandler() {