feat: complete

This commit is contained in:
Rogee
2024-12-13 21:28:43 +08:00
parent 13ebc91220
commit 7aebb161f6
13 changed files with 219 additions and 161 deletions

View File

@@ -2,12 +2,14 @@ package middlewares
import (
"github.com/gofiber/fiber/v3"
log "github.com/sirupsen/logrus"
)
func (f *Middlewares) DebugMode(c fiber.Ctx) error {
// fullURI := c.Request().URI().FullURI()
// host := c.BaseURL()
// fmt.Println(strings.Split(c.Path(), "/"))
// return c.SendString(c.Params("tenant", "no tenant: "+c.Path()))
// return c.SendString("ABC" + c.Params("+"))
log.SetLevel(log.DebugLevel)
return c.Next()
}