Added Air to the project to get automatic restarts.
This commit is contained in:
parent
5a1c71677f
commit
d015a8ce93
4 changed files with 60 additions and 8 deletions
2
main.go
2
main.go
|
@ -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...)
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue