All the pages are working again, but Alpine is insanely frustrating.

This commit is contained in:
Zed A. Shaw 2025-08-02 13:56:39 -04:00
parent 81cf5e0d93
commit 7125bc2d2a
15 changed files with 95 additions and 40 deletions

View file

@ -27,10 +27,18 @@ type Stream struct {
Description string `db:"description" json:"description"`
}
type Game struct {
Id int `db:"id" json:"id"`
Slug string `db:"slug" json:"slug"`
Title string `db:"title" json:"title"`
Description string `db:"description" json:"description"`
}
func Models() map[string]reflect.Type {
return map[string]reflect.Type{
"stream": reflect.TypeFor[Stream](),
"stream_link": reflect.TypeFor[Link](),
"user": reflect.TypeFor[User](),
"game": reflect.TypeFor[Game](),
}
}