15 lines
316 B
Go
15 lines
316 B
Go
package middlewares
|
|
|
|
import (
|
|
"github.com/gofiber/fiber/v3"
|
|
log "github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func (f *Middlewares) DebugMode(ctx fiber.Ctx) error {
|
|
log.Infof("c.Path: %s", ctx.Path())
|
|
log.Infof("Request Method: %s", ctx.Method())
|
|
log.Infof("FullURL: %s", ctx.Request().URI().FullURI())
|
|
|
|
return ctx.Next()
|
|
}
|