1
0
rngpotd/fiber_debug.go

21 lines
333 B
Go
Raw Normal View History

2024-07-19 16:52:06 +03:00
//go:build !rngpot_nodebug
package main
import (
"time"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/logger"
)
func preinitFiberConfig() {
fiberConfig.EnablePrintRoutes = true
}
func preinitFiberApp(app *fiber.App) {
app.Use(logger.New(logger.Config{
TimeInterval: 100 * time.Millisecond,
}))
}