gosearch/internal/http/server.go
Alex Wellnitz 64efaf5514
Some checks failed
Release / Generate changelog (push) Failing after -16s
fix: add default log level
2025-03-26 09:32:00 +01:00

23 lines
403 B
Go

package http
import (
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/log"
"github.com/gofiber/fiber/v2/middleware/logger"
)
func StartService() {
app := fiber.New()
// Add Logger
app.Use(logger.New(logger.Config{
Format: "[${ip}]:${port} ${status} - ${method} ${path}\n",
}))
log.SetLevel(log.LevelInfo)
// Configure Routes
app = configureRoutes(app)
app.Listen(":3000")
}