From 3d8637838e9ccfcb56899842945e760f337428b0 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 26 May 2024 22:14:56 +0200 Subject: feat: Add about page --- main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.go') 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"}) -- cgit v1.2.3