ipv6-test-backend/internal/router/router.go
thehrz b66129d29c
All checks were successful
CI / deploy (push) Successful in 2m27s
pref: update myip API
2024-08-18 23:23:18 +08:00

18 lines
260 B
Go

package router
import (
"github.com/gin-gonic/gin"
"ipv6-test-node/internal/router/routes/ip"
)
func Register() *gin.Engine {
g := gin.New()
g.Use(gin.Recovery())
g.Use(gin.Logger())
ipGroup := g.Group("ip")
ipGroup.GET("myip", ip.MyIP)
return g
}