diff --git a/api/announcements.go b/api/announcements.go index 7200f7f..9d212c1 100644 --- a/api/announcements.go +++ b/api/announcements.go @@ -32,6 +32,9 @@ func CheckAnn() { Announcements() } else { log.Println("Announcements disabled") + http.HandleFunc("/api/announcements", func(w http.ResponseWriter, r *http.Request) { + io.WriteString(w, "Disabled") + }) } }