feat: http logging middleware + mcp random port (#74)

This commit is contained in:
Carlos Florêncio
2026-01-22 02:27:14 +00:00
committed by GitHub
parent 89d7f10211
commit efd36ffbb7
12 changed files with 95 additions and 11 deletions
+2
View File
@@ -14,6 +14,7 @@ import (
"time"
"github.com/gin-gonic/gin"
"github.com/kandev/kandev/internal/common/httpmw"
"go.uber.org/zap"
// Common packages
@@ -648,6 +649,7 @@ func main() {
gin.SetMode(gin.ReleaseMode)
}
router := gin.New()
router.Use(httpmw.RequestLogger(log, "kandev"))
router.Use(gin.Recovery())
router.Use(corsMiddleware())