"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/public/public.go" between
gitea-1.13.1.tar.gz and gitea-1.13.2.tar.gz

About: Gitea allows to set up a self-hosted code hosting Git service (a fork of Gogs).

public.go  (gitea-1.13.1):public.go  (gitea-1.13.2)
skipping to change at line 41 skipping to change at line 41
Prefix string Prefix string
} }
// KnownPublicEntries list all direct children in the `public` directory // KnownPublicEntries list all direct children in the `public` directory
var KnownPublicEntries = []string{ var KnownPublicEntries = []string{
"css", "css",
"img", "img",
"js", "js",
"serviceworker.js", "serviceworker.js",
"vendor", "vendor",
"favicon.ico",
} }
// Custom implements the macaron static handler for serving custom assets. // Custom implements the macaron static handler for serving custom assets.
func Custom(opts *Options) macaron.Handler { func Custom(opts *Options) macaron.Handler {
return opts.staticHandler(path.Join(setting.CustomPath, "public")) return opts.staticHandler(path.Join(setting.CustomPath, "public"))
} }
// staticFileSystem implements http.FileSystem interface. // staticFileSystem implements http.FileSystem interface.
type staticFileSystem struct { type staticFileSystem struct {
dir *http.Dir dir *http.Dir
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)