This commit is contained in:
parent
dc69cc447d
commit
427bec5081
@ -32,6 +32,9 @@ func CheckAnn() {
|
|||||||
Announcements()
|
Announcements()
|
||||||
} else {
|
} else {
|
||||||
log.Println("Announcements disabled")
|
log.Println("Announcements disabled")
|
||||||
|
http.HandleFunc("/api/announcements", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
io.WriteString(w, "Disabled")
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user