All the pages are working again, but Alpine is insanely frustrating.
This commit is contained in:
parent
81cf5e0d93
commit
7125bc2d2a
15 changed files with 95 additions and 40 deletions
|
@ -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](),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue