fix
All checks were successful
Deploy Dev / Build (pull_request) Successful in 55s
Deploy Dev / Push (pull_request) Successful in 36s
Deploy Dev / Deploy dev (pull_request) Successful in 9s

This commit is contained in:
Egor Matveev 2025-06-13 00:46:43 +03:00
parent 7353809a7e
commit a38527dadd

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)