Initial work on parsing config file

This commit is contained in:
Dan Jones 2023-03-23 13:03:16 -05:00
commit 996f59c8af
4 changed files with 51 additions and 4 deletions

View file

@ -3,16 +3,16 @@ package main
import (
"log"
"codeberg.org/danjones000/gopub/config"
"github.com/gofiber/fiber/v2"
)
func main() {
app := fiber.New()
config := config.GetConfig()
app.Get("/", func(c *fiber.Ctx) error {
return c.JSON(&fiber.Map{
"Hello": "World",
})
return c.JSON(&config)
})
log.Fatal(app.Listen(":3000"))