You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudreve/routers/router.go

22 lines
332 B

5 years ago
package routers
import (
"Cloudreve/routers/controllers"
"github.com/gin-gonic/gin"
)
func InitRouter() *gin.Engine {
r := gin.Default()
// 顶层路由分组
5 years ago
v3 := r.Group("/Api/V3")
{
// 测试用路由
5 years ago
v3.GET("Ping", controllers.Ping)
// 用户登录
v3.POST("User/Login", controllers.UserLogin)
5 years ago
}
return r
}