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 {