Uuuh yeah Status OK is better here.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Midou36O 2022-09-24 16:30:27 +01:00
parent fcf66afb14
commit 0cdcadb27b
Signed by: midou
GPG Key ID: 08063D5407090BC2
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ func AnnCheck() {
} else { } else {
AnnPage() AnnPage()
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\": \"true\"}", http.StatusServiceUnavailable) http.Error(w, "{\"enabled\": \"true\"}", http.StatusOK)
}) })
Announcements() Announcements()
} }

View File

@ -34,7 +34,7 @@ func FormCheck() {
} else { } else {
FormPage() FormPage()
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\": \"true\"}", http.StatusServiceUnavailable) http.Error(w, "{\"enabled\": \"true\"}", http.StatusOK)
}) })
Form() Form()
} }