MCPcopy
hub / github.com/usefathom/fathom / serveFileHandler

Function serveFileHandler

pkg/api/http.go:49–51  ·  view source on GitHub ↗
(box *packr.Box, filename string)

Source from the content-addressed store, hash-verified

47}
48
49func serveFileHandler(box *packr.Box, filename string) http.Handler {
50 return HandlerFunc(serveFile(box, filename))
51}
52
53func serveFile(box *packr.Box, filename string) Handler {
54 return func(w http.ResponseWriter, r *http.Request) error {

Callers 1

RoutesMethod · 0.85

Calls 2

HandlerFuncFunction · 0.85
serveFileFunction · 0.85

Tested by

no test coverage detected