add modules

This commit is contained in:
Iru 2025-11-23 19:16:16 +01:00
commit 38e72e2a0c
2 changed files with 12 additions and 4 deletions

View file

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