From 79f5117e63ba859ffcf9da6c16d60f0a96a7fac6 Mon Sep 17 00:00:00 2001 From: Midou36O Date: Tue, 27 Sep 2022 15:41:14 +0100 Subject: [PATCH] Status OK --- api/announcements.go | 2 +- api/form.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/announcements.go b/api/announcements.go index 1d39156..2ae62aa 100644 --- a/api/announcements.go +++ b/api/announcements.go @@ -25,7 +25,7 @@ func AnnCheck() { http.Error(w, "Announcements are disabled.", http.StatusServiceUnavailable) }) 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 { AnnPage() diff --git a/api/form.go b/api/form.go index 0cd9036..3749f56 100644 --- a/api/form.go +++ b/api/form.go @@ -28,7 +28,7 @@ func FormCheck() { http.Error(w, "Form is disabled.", http.StatusServiceUnavailable) }) 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 {