2026-07-22 07:23:40 +00:00
|
|
|
package api
|
|
|
|
|
|
|
|
|
|
import "net/http"
|
|
|
|
|
|
|
|
|
|
func Index(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
if r.URL.Path != "/" {
|
|
|
|
|
http.NotFound(w, r)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
|
|
|
|
w.WriteHeader(http.StatusOK)
|
|
|
|
|
_, _ = w.Write([]byte(indexHTML))
|
|
|
|
|
}
|
2026-07-27 07:34:32 +00:00
|
|
|
|
|
|
|
|
func Questionnaire(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
if r.URL.Path != "/questionnaire" {
|
|
|
|
|
http.NotFound(w, r)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
|
|
|
|
w.WriteHeader(http.StatusOK)
|
|
|
|
|
_, _ = w.Write([]byte(questionnaireHTML))
|
|
|
|
|
}
|