package routes
import (
"embed"
"html/template"
"net/http"
"shelves"
)
func html(w http.ResponseWriter, s template.HTML) {
w.Header().Add("Content-Type", "text/html")
w.Write([]byte(s))
}
func Routes() *http.ServeMux {
mux := http.NewServeMux()
mux.HandleFunc("GET /", HomeGet)
mux.Handle("GET /static", http.FileServerFS(shelves.Frontend))
return mux
}