aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index 5935bc9..165cacb 100644
--- a/main.go
+++ b/main.go
@@ -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)