From f1d2410857568d94694c9934c2975db29aab0d02 Mon Sep 17 00:00:00 2001 From: Alex Savin Date: Wed, 30 Apr 2025 18:53:12 -0400 Subject: [PATCH] Some API fixes --- config/config.go | 12 ++++++------ main.go | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config/config.go b/config/config.go index 24b66e6..478e9d1 100644 --- a/config/config.go +++ b/config/config.go @@ -123,12 +123,12 @@ type Bus struct { } // Listeners . -type Listener struct { - ID string - Port int `json:"port" yaml:"port"` - Cert string `json:"cert,omitempty" yaml:"cert,omitempty"` - PKey string `json:"pkey,omitempty" yaml:"pkey,omitempty"` -} +// type Listener struct { +// ID string +// Port int `json:"port" yaml:"port"` +// Cert string `json:"cert,omitempty" yaml:"cert,omitempty"` +// PKey string `json:"pkey,omitempty" yaml:"pkey,omitempty"` +// } // Logging . type Logging struct { diff --git a/main.go b/main.go index a69a443..19caf13 100644 --- a/main.go +++ b/main.go @@ -127,7 +127,7 @@ func main() { app.Log.Error(err.Error()) } - api := listeners.NewHttpApi(cfg.Listeners[0], db) + api := listeners.NewHttpApi(cfg.Listeners[1], db) err = app.AddListener(api) if err != nil { app.Log.Error(err.Error())