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

@ -5,8 +5,8 @@ import (
"net/http"
)
func alertReceiver(w http.ResponseWriter, r *http.Request) {
cfg := LoadConfig()
func (cfg *Config) alertReceiver(w http.ResponseWriter, r *http.Request) {
if r.Method != http.MethodPost {
http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)
return