Refactor show model/validation into show.go and simplify timeline internals

This commit is contained in:
Ian Gulliver
2026-02-20 20:10:43 -07:00
parent 7d398082dd
commit 2c31d9505c
3 changed files with 194 additions and 103 deletions

View File

@@ -102,18 +102,6 @@ func main() {
}
}
func loadMockShow() (*Show, error) {
buf, err := staticFS.ReadFile("static/show.json")
if err != nil {
return nil, err
}
var show Show
if err := json.Unmarshal(buf, &show); err != nil {
return nil, err
}
return &show, nil
}
func writeJSON(w http.ResponseWriter, v any) {
w.Header().Set("Content-Type", "application/json")
enc := json.NewEncoder(w)