18 lines
609 B
Go
18 lines
609 B
Go
package router
|
|
|
|
import (
|
|
"time"
|
|
"videoweb/app/api/dhapi"
|
|
"videoweb/app/middleware/templatecache"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func dhRouter(r *gin.Engine) {
|
|
r.GET("/dh/", templatecache.WithCache(time.Minute*1), dhapi.DHApi)
|
|
r.GET("/businessCooperation/", templatecache.WithCache(time.Minute*1), dhapi.BusinessCooperationApi)
|
|
r.GET("/servicesProject/", templatecache.WithCache(time.Minute*1), dhapi.ServicesProjectApi)
|
|
r.GET("/consulting/", templatecache.WithCache(time.Minute*1), dhapi.ConsultingApi)
|
|
r.GET("/consultinginfo/:id/", templatecache.WithCache(time.Minute*1), dhapi.ConsultingInfoApi)
|
|
}
|