change template dir

main
DustyP 9 months ago
parent e128569a29
commit fef6edeea1

@ -30,7 +30,7 @@ type Server struct {
// NewServer creates a new web server
func NewServer(clock *derby.DerbyClock, port int) (*Server, error) {
// Parse templates
templates, err := template.ParseFS(content, "templates/*.html", "templates/**/*.html")
templates, err := template.ParseFS(content, "web/templates/*.html", "web/templates/**/*.html")
if err != nil {
return nil, fmt.Errorf("failed to parse templates: %w", err)
}

Loading…
Cancel
Save