make it better
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2022-09-17 21:55:50 +01:00
parent dc69cc447d
commit 427bec5081

View File

@ -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")
})
}
}