Add index

This commit is contained in:
Milan Nikolic
2019-10-06 02:41:34 +02:00
parent 1baf0deb39
commit 277d6c5b48
2 changed files with 33 additions and 3 deletions

View File

@@ -58,9 +58,7 @@ func (s *Server) ListenAndServe() error {
w.WriteHeader(http.StatusOK)
})
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
})
http.Handle("/", newAuthHandler(handlers.NewIndex(), basic))
srv := &http.Server{}