diff options
Diffstat (limited to '')
-rw-r--r-- | main.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -6,6 +6,7 @@ import ( "git.capotej.com/capotej/communique/cgi" "git.capotej.com/capotej/communique/config" "git.capotej.com/capotej/communique/http" + "git.capotej.com/capotej/communique/registry" "github.com/BurntSushi/toml" "go.uber.org/zap" "go.uber.org/zap/zapio" @@ -26,6 +27,7 @@ func main() { log.Fatal(err) } log.Debugf("Loaded TOML Config: %+v", cfg) + registry := registry.NewRegistry(cfg) var mainWg sync.WaitGroup @@ -37,7 +39,7 @@ func main() { // External Http Server writer := &zapio.Writer{Log: logger, Level: zap.DebugLevel} defer writer.Close() - server := http.NewServer() + server := http.NewServer(registry) mainWg.Add(1) go server.Start(writer) |