1234567891011121314151617181920 |
- 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, "7d91e2e14e42bae37c4c97f5e01180a3") })
- r.GET("/root.txt", func(c *gin.Context) { c.String(http.StatusOK, "7d91e2e14e42bae37c4c97f5e01180a3") })
- r2 := r.Group("/")
- {
- pdd.InitPddDdkRouter(r2)
- }
- _ = r.Run(":80")
- }
|