github.com/pf-qiu/concourse/v6@v6.7.3-0.20201207032516-1f455d73275f/web/publichandler/handler.go (about) 1 package publichandler 2 3 import ( 4 "net/http" 5 6 "github.com/gobuffalo/packr" 7 ) 8 9 func NewHandler() (http.Handler, error) { 10 return CacheNearlyForever(http.StripPrefix("/public/", http.FileServer(packr.NewBox("../public")))), nil 11 }