Uuuh yeah Status OK is better here.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
fcf66afb14
commit
0cdcadb27b
@ -30,7 +30,7 @@ func AnnCheck() {
|
||||
} else {
|
||||
AnnPage()
|
||||
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()
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ func FormCheck() {
|
||||
} else {
|
||||
FormPage()
|
||||
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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user