From a5c806257844820e7a91f944056cd32fde8380cc Mon Sep 17 00:00:00 2001 From: lhridder Date: Thu, 8 Dec 2022 20:59:29 +0100 Subject: [PATCH] possibly fix api --- api/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/api.go b/api/api.go index ff5d1f6..a9ee55f 100644 --- a/api/api.go +++ b/api/api.go @@ -28,13 +28,13 @@ func ListenAndServe(configPath string, apiBind string) { log.Printf("Failed to start API listener: %s", err) return } - err = http.Serve(listen, nil) + err = http.Serve(listen, router) if err != nil { log.Printf("Failed to start serving API: %s", err) return } } else { - err := http.ListenAndServe(apiBind, nil) + err := http.ListenAndServe(apiBind, router) if err != nil { log.Printf("Failed to start serving API: %s", err) return