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
1 changed files with 1 additions and 1 deletions

View File

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