This commit is contained in:
Iru 2025-11-23 19:55:50 +01:00
commit efc7072c63
2 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@ import (
func main() {
cfg := LoadConfig()
http.HandleFunc("/", alertReceiver)
http.HandleFunc("/", cfg.alertReceiver)
log.Printf("Server starting on http://localhost:%d", cfg.Port)
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", cfg.Port), nil))
}