Merge pull request #13 from ProjectSegfault/options-pub

Status OK
This commit is contained in:
Midou36O 2022-09-27 14:42:30 +00:00 committed by GitHub
commit 712ef1c8ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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 {