h
Signed-off-by: Odyssey <odyssey346@disroot.org>
This commit is contained in:
parent
b05c48cfbb
commit
977136d9c2
@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user