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

This commit is contained in:
Midou36O 2022-09-17 21:55:50 +01:00
parent dc69cc447d
commit 427bec5081
Signed by: midou
GPG Key ID: 08063D5407090BC2

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