Ok so, pages don't get disabled, but they don't show up! Half working.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
16ea5c3138
commit
af39a52971
@ -20,8 +20,8 @@ var (
|
|||||||
|
|
||||||
func CheckAnn() {
|
func CheckAnn() {
|
||||||
if resAnn == "true" {
|
if resAnn == "true" {
|
||||||
Announcements()
|
|
||||||
AnnPage()
|
AnnPage()
|
||||||
|
Announcements()
|
||||||
} else {
|
} else {
|
||||||
log.Println("Announcements disabled")
|
log.Println("Announcements disabled")
|
||||||
http.HandleFunc("/announcements", func(w http.ResponseWriter, r *http.Request) {
|
http.HandleFunc("/announcements", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
@ -30,6 +30,9 @@ func FormCheck() {
|
|||||||
http.HandleFunc("/api/form", func(w http.ResponseWriter, r *http.Request) {
|
http.HandleFunc("/api/form", func(w http.ResponseWriter, r *http.Request) {
|
||||||
io.WriteString(w, "Disabled")
|
io.WriteString(w, "Disabled")
|
||||||
})
|
})
|
||||||
|
http.HandleFunc("/form", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
io.WriteString(w, "Disabled")
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user