blob: 9c817294253185c5db5af71d85dd352f1008417f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package webui
import (
"html/template"
"net/http"
)
var indexTemplates = template.Must(template.ParseFS(htmlFS, "html/base.html", "html/index.html"))
func handleIndexGET() http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "no-store, no-cache")
render(w, indexTemplates, http.StatusOK, nil)
})
}
|