aboutsummaryrefslogtreecommitdiff
path: root/pkg/handler/router.go
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-10-05 16:53:15 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-10-05 16:53:15 +0200
commit6e5062488fc3ecbf37c11e7d111bfe6ea3b5284d (patch)
tree6b568c854674295941cc1b827b3017879e66ebe5 /pkg/handler/router.go
parentada6a68b4f25c912705542a6b03aae7ffffb5e99 (diff)
downloadcerrado-6e5062488fc3ecbf37c11e7d111bfe6ea3b5284d.tar.gz
cerrado-6e5062488fc3ecbf37c11e7d111bfe6ea3b5284d.tar.bz2
cerrado-6e5062488fc3ecbf37c11e7d111bfe6ea3b5284d.zip
feat: Remove config page
That page was created as playground and had some debug purpose. Now that is not longer used and with introduction of sensible information (hash and aes-key) that has to go.
Diffstat (limited to 'pkg/handler/router.go')
-rw-r--r--pkg/handler/router.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/pkg/handler/router.go b/pkg/handler/router.go
index f464ac2..a2ac98a 100644
--- a/pkg/handler/router.go
+++ b/pkg/handler/router.go
@@ -6,7 +6,6 @@ import (
serverconfig "git.gabrielgio.me/cerrado/pkg/config"
"git.gabrielgio.me/cerrado/pkg/ext"
"git.gabrielgio.me/cerrado/pkg/handler/about"
- "git.gabrielgio.me/cerrado/pkg/handler/config"
"git.gabrielgio.me/cerrado/pkg/handler/git"
"git.gabrielgio.me/cerrado/pkg/handler/static"
"git.gabrielgio.me/cerrado/pkg/service"
@@ -20,9 +19,8 @@ func MountHandler(
configRepo *serverconfig.ConfigurationRepository,
) (http.Handler, error) {
var (
- gitHandler = git.NewGitHandler(gitService, configRepo)
- aboutHandler = about.NewAboutHandler(configRepo)
- configHandler = config.ConfigFile(configRepo)
+ gitHandler = git.NewGitHandler(gitService, configRepo)
+ aboutHandler = about.NewAboutHandler(configRepo)
)
staticHandler, err := static.ServeStaticHandler()
@@ -43,7 +41,6 @@ func MountHandler(
mux.HandleFunc("/{name}/log/{ref}/", gitHandler.Log)
mux.HandleFunc("/{name}/commit/{ref}/", gitHandler.Commit)
mux.HandleFunc("/{name}/archive/{file}", gitHandler.Archive)
- mux.HandleFunc("/config", configHandler)
mux.HandleFunc("/about", aboutHandler.About)
mux.HandleFunc("/", gitHandler.List)
return mux.Handler(), nil