Improve comment

This commit is contained in:
Andrea Fazzi 2020-01-20 12:54:57 +01:00
parent 13fe896472
commit 75ce2c54ab

View file

@ -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 {