From af39a529719b85409b9c8d8095d234c0738b981f Mon Sep 17 00:00:00 2001 From: Midou36O Date: Sun, 18 Sep 2022 01:43:17 +0100 Subject: [PATCH] Ok so, pages don't get disabled, but they don't show up! Half working. --- api/announcements.go | 2 +- api/form.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/api/announcements.go b/api/announcements.go index e23d30e..5cffff6 100644 --- a/api/announcements.go +++ b/api/announcements.go @@ -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) { diff --git a/api/form.go b/api/form.go index 42de194..e1181cc 100644 --- a/api/form.go +++ b/api/form.go @@ -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") + }) } }