Cloudreve/routers/router.go
2019-11-05 12:31:22 +08:00

18 lines
234 B
Go

package routers
import (
"Cloudreve/routers/controllers"
"github.com/gin-gonic/gin"
)
func InitRouter() *gin.Engine {
r := gin.Default()
// 路由
v3 := r.Group("/Api/V3")
{
v3.GET("Ping", controllers.Ping)
}
return r
}