17 lines
272 B
Go
17 lines
272 B
Go
package router
|
|
|
|
import (
|
|
"github.com/gofiber/fiber/v3"
|
|
)
|
|
|
|
func Setup(app *fiber.App) {
|
|
// 健康检查
|
|
app.Get("/ping", func(c fiber.Ctx) error {
|
|
return c.SendString("pong")
|
|
})
|
|
|
|
// 你后面可以这样分组:
|
|
// setupUserRoutes(app)
|
|
// setupOrderRoutes(app)
|
|
}
|