set route in PB

This commit is contained in:
Jeff Carr 2025-09-05 14:16:34 -05:00
parent b2af891b20
commit d795dbeb61
1 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,12 @@ func handlePatches(w http.ResponseWriter, r *http.Request) error {
}
route := pb.HttpRequest.Route
if route == "" {
route = cleanURL(r.URL.Path)
}
if route == "" {
route = "route was blank"
}
if strings.HasPrefix(route, "/patches/old") {
processPatchesPB(r, pb)
} else if strings.HasPrefix(route, "/patches/old") {