From 75ce2c54abf8222a1498e8f2bb690bfbecc5c45b Mon Sep 17 00:00:00 2001 From: Andrea Fazzi Date: Mon, 20 Jan 2020 12:54:57 +0100 Subject: [PATCH] Improve comment --- handlers/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/handlers.go b/handlers/handlers.go index 9c120a4c..3342277b 100644 --- a/handlers/handlers.go +++ b/handlers/handlers.go @@ -394,7 +394,7 @@ func (h *Handlers) Read(model interface{}) http.Handler { func (h *Handlers) modelHandler(model string, pattern config.PathPattern) http.Handler { fn := func(w http.ResponseWriter, r *http.Request) { - // Replace "api" prefix + // Replace the "api" prefix. pattern.PathPattern = strings.Replace(pattern.PathPattern, "/api", "", -1) switch r.Method {