This commit is contained in:
oneao committed 2026-04-03 17:29:24 +08:00
1 parent 3420976bd6
commit ad47e5167b
8 files changed
+184 -70

No files matched your search

@@ -1,12 +1,18 @@
package router
import (
"allapp-go/pkg/logger"
"github.com/gofiber/fiber/v3"
)
func Setup(app *fiber.App) {
// 健康检查
app.Get("/ping", func(c fiber.Ctx) error {
log := logger.FromCtx(c)
log.Info("测试")
return c.SendString("pong")
})