diff --git a/main.go b/main.go index 4cc349f..e5e9951 100644 --- a/main.go +++ b/main.go @@ -4,10 +4,19 @@ import ( "net/http" ) +func readinessHandler(w http.ResponseWriter, r *http.Request) { + w.Header().Set("Content-Type", "text/plain; charset=utf-8") + w.WriteHeader(http.StatusOK) + w.Write([]byte("OK")) +} + func main() { mux := http.NewServeMux() - mux.Handle("/", http.FileServer(http.Dir("./public"))) + mux.HandleFunc("/healthz", readinessHandler) + + fileServer := http.FileServer(http.Dir("./public")) + mux.Handle("/app/", http.StripPrefix("/app", fileServer)) server := &http.Server{ Addr: ":8080", diff --git a/public/assets/logo.png b/public/assets/logo.png new file mode 100644 index 0000000..fe5c99f Binary files /dev/null and b/public/assets/logo.png differ