mirror of
https://github.com/lone-cloud/prism
synced 2026-06-03 08:43:10 -07:00
13 lines
381 B
Go
13 lines
381 B
Go
package server
|
|
|
|
import (
|
|
"net/http"
|
|
"prism/service/util"
|
|
)
|
|
|
|
func (s *Server) handleIndex(w http.ResponseWriter, r *http.Request) {
|
|
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
|
if err := s.indexTmpl.Execute(w, map[string]string{"Version": s.version}); err != nil {
|
|
util.LogAndError(w, s.logger, "Internal Server Error", http.StatusInternalServerError, err)
|
|
}
|
|
}
|