Added Air to the project to get automatic restarts.

This commit is contained in:
Zed A. Shaw 2025-06-03 15:08:19 -04:00
parent 5a1c71677f
commit d015a8ce93
4 changed files with 60 additions and 8 deletions

View file

@ -74,8 +74,10 @@ func main() {
return GetJson[Stream](db, c, err, sql, args...)
})
app.Get("/api/stream/:id/links", func (c *fiber.Ctx) error {
sql, args, err := sq.Select("*").From("stream_link").Where("stream_id", c.Params("id")).ToSql()
return SelectJson[Link](db, c, err, sql, args...)
})