From 91479478b9bdd96efe6d9820c7f5462a6160e2e5 Mon Sep 17 00:00:00 2001 From: Bastien Riviere Date: Fri, 1 Sep 2023 22:35:46 +0200 Subject: [PATCH] fix: use readConfig --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 69624c6..a07caba 100644 --- a/main.go +++ b/main.go @@ -33,7 +33,7 @@ func readConfig() (config.Config, error) { } func main() { - cfg, err := config.ReadConfig("config.scfg") + cfg, err := readConfig() if err != nil { slog.Error("failed to read config", "error", err) os.Exit(2) @@ -77,6 +77,7 @@ func main() { } slog.Debug("Registering bridge", "route", route, "handler", handler.Type) + // TODO: use default topic if topic == "" bridge := bridge.NewBridge(cfg.Ntfy.Server, handler.Topic, h) if !auth.IsEmpty() { bridge.WithAuth(auth)