blob: 4cfe8f4317adfd7ddfeff8f1393a17b0ec9728d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package api
import (
"github.com/gofiber/fiber/v2"
"github.com/keuin/slbr/logging"
)
func StartServer(logger logging.Logger, addr string) error {
app := fiber.New()
app.Get("/", func(c *fiber.Ctx) error {
return c.SendString("Hello, World!")
})
return app.Listen(addr)
}
|