feat: update full url generat
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
package middlewares
|
||||
|
||||
import (
|
||||
"quyun/pkg/utils"
|
||||
|
||||
"github.com/gofiber/fiber/v3"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func (f *Middlewares) DebugMode(ctx fiber.Ctx) error {
|
||||
log.Info("------------------")
|
||||
log.Infof("c.Path: %s", ctx.Path())
|
||||
log.Infof("Request Method: %s", ctx.Method())
|
||||
log.Infof("FullURL: %s", ctx.Request().URI().FullURI())
|
||||
log.Infof("StartPATH: %s", ctx.Params("*"))
|
||||
log.Info("------------------")
|
||||
|
||||
log.Infof("DEBUG: [%s] %s", ctx.Method(), utils.FullURI(ctx))
|
||||
return ctx.Next()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user