|
|
|
|
@ -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)
|
|
|
|
|
}
|
|
|
|
|
|