21 lines
333 B
Go
21 lines
333 B
Go
|
//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,
|
||
|
}))
|
||
|
}
|