import "code.gitea.io/gitea/modules/public"
var KnownPublicEntries = []string{ "css", "img", "js", "serviceworker.js", "vendor", "favicon.ico", }
KnownPublicEntries list all direct children in the `public` directory
Custom implements the macaron static handler for serving custom assets.
func ServeContent(w http.ResponseWriter, req *http.Request, fi os.FileInfo, modtime time.Time, content io.ReadSeeker)
ServeContent serve http content
Static implements the macaron static handler for serving assets.
StaticHandler sets up a new middleware for serving static files in the
type Options struct { Directory string IndexFile string SkipLogging bool FileSystem http.FileSystem Prefix string }
Options represents the available options to configure the macaron handler.
Package public imports 10 packages (graph) and is imported by 25 packages. Updated 2021-01-22. Refresh now. Tools for package owners.