12345678910111213141516171819 |
- package routers
- import (
- "duoduo/apis/pdd"
- "github.com/gin-gonic/gin"
- "net/http"
- )
- func InitRouter() {
- r := gin.New()
- r.GET("/", func(c *gin.Context) { c.String(http.StatusOK, "hello!") })
- r2 := r.Group("/")
- {
- pdd.InitPddDdkRouter(r2)
- }
- _ = r.Run(":8080")
- }
|