You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
324 B
Go
20 lines
324 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/gofiber/fiber/v3"
|
|
)
|
|
|
|
func main() {
|
|
app := fiber.New(fiber.Config{
|
|
AppName: "Know Foolery - Leaderboard Service",
|
|
})
|
|
|
|
app.Get("/health", func(c fiber.Ctx) error {
|
|
return c.JSON(fiber.Map{"status": "healthy", "service": "leaderboard"})
|
|
})
|
|
|
|
log.Fatal(app.Listen(":8083"))
|
|
}
|