initial commit
This commit is contained in:
20
fiber_debug.go
Normal file
20
fiber_debug.go
Normal file
@@ -0,0 +1,20 @@
|
||||
//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,
|
||||
}))
|
||||
}
|
Reference in New Issue
Block a user