From 9d520f7a6cf2a7903c57414cf023dbb449468ede Mon Sep 17 00:00:00 2001 From: Akilan Date: Mon, 20 Mar 2023 23:13:11 +0000 Subject: [PATCH] added debug for path --- Gateway.go | 1 + 1 file changed, 1 insertion(+) diff --git a/Gateway.go b/Gateway.go index 377f449..516472c 100644 --- a/Gateway.go +++ b/Gateway.go @@ -115,6 +115,7 @@ func webGatewayHandler(backend *core.Backend) func(w http.ResponseWriter, r *htt pathA := strings.TrimPrefix(strings.TrimSuffix(r.URL.Path, "/"), "/") pathParts := strings.Split(pathA, "/") + fmt.Println(pathParts) if len(pathParts) != 1 && len(pathParts) != 2 { http.Error(w, "404 not found", http.StatusNotFound) return