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