More testing of the sqlx and squirrel database system, then added in goose for migrations. Pretty close to making a first version api.
This commit is contained in:
parent
07fa59c8e7
commit
d49e1fbdc0
6 changed files with 554 additions and 7 deletions
5
main.go
5
main.go
|
@ -8,6 +8,11 @@ import (
|
|||
func main() {
|
||||
app := fiber.New()
|
||||
|
||||
// handler that returns one json from a sql database
|
||||
app.Get("/api/stream/", func (c *fiber.Ctx) error {
|
||||
return c.SendString("[]")
|
||||
})
|
||||
|
||||
app.Static("/", "./public")
|
||||
|
||||
log.Fatal(app.Listen(":5001"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue