(next http.Handler)
| 31 | } |
| 32 | |
| 33 | func addHeaders(next http.Handler) http.Handler { |
| 34 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 35 | w.Header().Add("Content-Type", "application/schema+json") |
| 36 | next.ServeHTTP(w, r) |
| 37 | }) |
| 38 | } |
| 39 | |
| 40 | type JsonDir struct { |
| 41 | d http.Dir |
no test coverage detected