cml04-falcon-ui/handlers/bcp.go

21 lines
488 B
Go
Raw Permalink Normal View History

2024-10-06 18:40:34 +02:00
package handlers
import (
"net/http"
"text/template"
"git.espin.casa/albert/cml04-falcon-ui/storage"
"github.com/julienschmidt/httprouter"
)
func BCPHandler(storage storage.Storager) httprouter.Handle {
return func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
2024-10-06 18:52:09 +02:00
t, _ := template.ParseFiles("templates/base.html", "templates/bcp.html")
2024-10-06 18:40:34 +02:00
err := t.Execute(w, nil)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
}
}