Skip to content
Snippets Groups Projects
Commit ca0307d6 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Added health check

parent dc231fa6
Branches
No related tags found
No related merge requests found
......@@ -38,6 +38,10 @@ func main() {
http.Handle("/assets/", http.StripPrefix("/assets/", http.FileServer(http.Dir("assets"))))
http.Handle("/", pageIndex(pageContext))
http.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("OK"))
})
err = http.ListenAndServe(":8080", nil)
if err != nil {
panic(err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment