Skip to content

Commit

Permalink
possibly fix api
Browse files Browse the repository at this point in the history
  • Loading branch information
lhridder committed Dec 8, 2022
1 parent f514513 commit a5c8062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5c8062

Please sign in to comment.