fix #4

Merged
emmatveev merged 1 commits from master into dev 2025-06-13 00:47:06 +03:00
Showing only changes of commit a38527dadd - Show all commits

View File

@ -29,7 +29,11 @@ func handlerWrapper(f func(*http.Request) (interface{}, int)) func(http.Response
}
func main() {
client.Connect()
err := client.Connect()
if err != nil {
panic(err)
}
http.HandleFunc("/api/v1/metrics/endpoint", handlerWrapper(endpoint.AddEndpointMetric))
log.Printf("Server started")
http.ListenAndServe(":1237", nil)