Ok so, pages don't get disabled, but they don't show up! Half working.
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
midou committed 2022-09-18 01:43:17 +01:00
1 parent 16ea5c3138
commit af39a52971
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -20,8 +20,8 @@ var (
func CheckAnn() {
if resAnn == "true" {
Announcements()
AnnPage()
Announcements()
} else {
log.Println("Announcements disabled")
http.HandleFunc("/announcements", func(w http.ResponseWriter, r *http.Request) {
+3
View File
@@ -30,6 +30,9 @@ func FormCheck() {
http.HandleFunc("/api/form", func(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, "Disabled")
})
http.HandleFunc("/form", func(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, "Disabled")
})
}
}