cml04-falcon-ui/handlers/hbcp.go

20 lines
417 B
Go
Raw Normal View History

2024-10-05 18:43:25 +02:00
package handlers
import (
"net/http"
"text/template"
"github.com/julienschmidt/httprouter"
)
func HBCPHandler() httprouter.Handle {
return func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
t, _ := template.ParseFiles("templates/base.html", "templates/hbcp.html")
err := t.Execute(w, nil)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
}
}