Some API fixes
All checks were successful
Build and Push Docker Image / testing (1.24.x, ubuntu-latest) (push) Successful in 1m40s
Build and Push Docker Image / build-and-push (push) Successful in 10m29s

This commit is contained in:
2025-04-30 18:53:12 -04:00
parent d01e6a050f
commit f1d2410857
2 changed files with 7 additions and 7 deletions

View File

@ -123,12 +123,12 @@ type Bus struct {
} }
// Listeners . // Listeners .
type Listener struct { // type Listener struct {
ID string // ID string
Port int `json:"port" yaml:"port"` // Port int `json:"port" yaml:"port"`
Cert string `json:"cert,omitempty" yaml:"cert,omitempty"` // Cert string `json:"cert,omitempty" yaml:"cert,omitempty"`
PKey string `json:"pkey,omitempty" yaml:"pkey,omitempty"` // PKey string `json:"pkey,omitempty" yaml:"pkey,omitempty"`
} // }
// Logging . // Logging .
type Logging struct { type Logging struct {

View File

@ -127,7 +127,7 @@ func main() {
app.Log.Error(err.Error()) app.Log.Error(err.Error())
} }
api := listeners.NewHttpApi(cfg.Listeners[0], db) api := listeners.NewHttpApi(cfg.Listeners[1], db)
err = app.AddListener(api) err = app.AddListener(api)
if err != nil { if err != nil {
app.Log.Error(err.Error()) app.Log.Error(err.Error())