1234567891011121314151617 |
- package routers
- import (
- "tmr-watch/http/handle/api"
- "github.com/gin-gonic/gin"
- )
- func NewAPI(opts ...func(engine *gin.Engine)) func(s *gin.Engine) {
- return func(s *gin.Engine) {
- for _, opt := range opts {
- opt(s)
- }
- newApiGroup := s.Group("/new_api")
- newApiGroup.POST("feet_template/list", api.SearchFeetTemplateList)
- }
- }
|