Signed-off-by: Odyssey <odyssey346@disroot.org>
This commit is contained in:
Odyssey 2022-09-17 23:08:33 +02:00
parent b05c48cfbb
commit 977136d9c2

View File

@ -33,7 +33,7 @@ func CheckAnn() {
} else { } else {
log.Println("Announcements disabled") log.Println("Announcements disabled")
http.HandleFunc("/api/announcements", func(w http.ResponseWriter, r *http.Request) { http.HandleFunc("/api/announcements", func(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, "Disabled") http.Error(w, "Announcements are disabled.", http.StatusNotFound)
}) })
} }
} }