Update docs and comments to remove macaron (#14491)
This commit is contained in:
parent
25b6255b92
commit
0cd87d64ff
29 changed files with 32 additions and 78 deletions
|
@ -15,7 +15,7 @@ import (
|
|||
"code.gitea.io/gitea/modules/setting"
|
||||
)
|
||||
|
||||
// Options represents the available options to configure the macaron handler.
|
||||
// Options represents the available options to configure the handler.
|
||||
type Options struct {
|
||||
Directory string
|
||||
IndexFile string
|
||||
|
@ -34,7 +34,7 @@ var KnownPublicEntries = []string{
|
|||
"favicon.ico",
|
||||
}
|
||||
|
||||
// Custom implements the macaron static handler for serving custom assets.
|
||||
// Custom implements the static handler for serving custom assets.
|
||||
func Custom(opts *Options) func(next http.Handler) http.Handler {
|
||||
return opts.staticHandler(path.Join(setting.CustomPath, "public"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue