This commit is contained in:
parent
0cdcadb27b
commit
79f5117e63
@ -25,7 +25,7 @@ func AnnCheck() {
|
|||||||
http.Error(w, "Announcements are disabled.", http.StatusServiceUnavailable)
|
http.Error(w, "Announcements are disabled.", http.StatusServiceUnavailable)
|
||||||
})
|
})
|
||||||
http.HandleFunc("/api/set/announcements", func(w http.ResponseWriter, r *http.Request) {
|
http.HandleFunc("/api/set/announcements", func(w http.ResponseWriter, r *http.Request) {
|
||||||
http.Error(w, "{\"enabled\": \"false\"}", http.StatusServiceUnavailable)
|
http.Error(w, "{\"enabled\": \"false\"}", http.StatusOK)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
AnnPage()
|
AnnPage()
|
||||||
|
@ -28,7 +28,7 @@ func FormCheck() {
|
|||||||
http.Error(w, "Form is disabled.", http.StatusServiceUnavailable)
|
http.Error(w, "Form is disabled.", http.StatusServiceUnavailable)
|
||||||
})
|
})
|
||||||
http.HandleFunc("/api/set/form", func(w http.ResponseWriter, r *http.Request) {
|
http.HandleFunc("/api/set/form", func(w http.ResponseWriter, r *http.Request) {
|
||||||
http.Error(w, "{\"enabled\": \"false\"}", http.StatusServiceUnavailable)
|
http.Error(w, "{\"enabled\": \"false\"}", http.StatusOK)
|
||||||
})
|
})
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user