✨ Initial work on parsing config file
This commit is contained in:
parent
4139d835be
commit
996f59c8af
4 changed files with 51 additions and 4 deletions
6
main.go
6
main.go
|
|
@ -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"))
|
||||
|
|
|
|||
Reference in a new issue