aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index 644b96c..76da07b 100644
--- a/main.go
+++ b/main.go
@@ -58,9 +58,11 @@ func run(ctx context.Context) error {
//handlers
gitHandler := handler.NewGitHandler(gitService)
+ aboutHandler := handler.NewAboutHandler(config.RootReadme)
mux.Handle("/static/", staticHandler)
mux.HandleFunc("/config", handler.ConfigFile(*configPath))
+ mux.HandleFunc("/about", aboutHandler.About)
mux.HandleFunc("/", gitHandler.List)
serverTask := worker.NewServerTask(&http.Server{Handler: mux, Addr: "0.0.0.0:8080"})