aboutsummaryrefslogtreecommitdiffstats
path: root/modules/public
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-01-29 23:35:30 +0800
committerGitHub <noreply@github.com>2021-01-29 16:35:30 +0100
commit0cd87d64ff8bb40520877d3a217363de299f4531 (patch)
treed2ec167aea8f5b2ff673b13ba8be98a275d942ab /modules/public
parent25b6255b924c30a2bab066c0465d146a34021245 (diff)
downloadgitea-0cd87d64ff8bb40520877d3a217363de299f4531.tar.gz
gitea-0cd87d64ff8bb40520877d3a217363de299f4531.zip
Update docs and comments to remove macaron (#14491)
Diffstat (limited to 'modules/public')
-rw-r--r--modules/public/dynamic.go2
-rw-r--r--modules/public/public.go4
-rw-r--r--modules/public/static.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/modules/public/dynamic.go b/modules/public/dynamic.go
index f634c598a3..a57b636369 100644
--- a/modules/public/dynamic.go
+++ b/modules/public/dynamic.go
@@ -13,7 +13,7 @@ import (
"time"
)
-// Static implements the macaron static handler for serving assets.
+// Static implements the static handler for serving assets.
func Static(opts *Options) func(next http.Handler) http.Handler {
return opts.staticHandler(opts.Directory)
}
diff --git a/modules/public/public.go b/modules/public/public.go
index 6417c91f1a..6695944bd6 100644
--- a/modules/public/public.go
+++ b/modules/public/public.go
@@ -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"))
}
diff --git a/modules/public/static.go b/modules/public/static.go
index c4dd7a1eca..36cfdbe44f 100644
--- a/modules/public/static.go
+++ b/modules/public/static.go
@@ -20,7 +20,7 @@ import (
"code.gitea.io/gitea/modules/log"
)
-// Static implements the macaron static handler for serving assets.
+// Static implements the static handler for serving assets.
func Static(opts *Options) func(next http.Handler) http.Handler {
opts.FileSystem = Assets
// we don't need to pass the directory, because the directory var is only