feat: update full url generat

This commit is contained in:
yanghao05
2025-04-29 17:25:41 +08:00
parent d9a40dc636
commit c16890aec8
4 changed files with 24 additions and 8 deletions

View File

@@ -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()
}