feat: support workspace

This commit is contained in:
Rogee
2024-11-28 09:17:16 +08:00
parent 301879ca39
commit c06fc4c04a
13 changed files with 10 additions and 0 deletions

17
backend/middlewares.go Normal file
View File

@@ -0,0 +1,17 @@
package main
import (
"github.com/gofiber/fiber/v3"
"github.com/gofiber/fiber/v3/log"
)
func LogAll(c fiber.Ctx) error {
log.Info("------------------------------------------")
log.Infof("Request Method: %s", c.Method())
log.Infof("Request Headers: %s", &c.Request().Header)
log.Infof("Request URL: %s", c.OriginalURL())
log.Infof("Request Query: %+v", c.Queries())
log.Infof("Request Body: %s", c.BodyRaw())
log.Info("------------------------------------------")
return c.Next()
}