diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -41,6 +41,15 @@ func main() { gitMux := mux.NewRouter() + git.New(git.Options{ + CGI: cfg.Git.CGI, + ReposRoot: cfg.ReposRoot, + ExportAll: cfg.Git.ExportAll, + Logger: logger.With("handler", "git"), + }). + WithRegister(RegistererFunc(gitMux.Handle)). + Build() + cgit.New(cgit.Options{ CGI: cfg.CGit.CGI, ReposRoot: cfg.ReposRoot, @@ -51,15 +60,6 @@ func main() { WithRegister(RegistererFunc(gitMux.Handle)). Build() - git.New(git.Options{ - CGI: cfg.Git.CGI, - ReposRoot: cfg.ReposRoot, - ExportAll: cfg.Git.ExportAll, - Logger: logger.With("handler", "git"), - }). - WithRegister(RegistererFunc(gitMux.Handle)). - Build() - m := manager.New() m.Add(&server.Server{ Name: "git", |