Basic check for User controller

This commit is contained in:
HFO4
2019-11-05 19:49:56 +08:00
parent 74b5bf24a8
commit 6539ae20fa
8 changed files with 133 additions and 2 deletions

View File

@ -8,10 +8,13 @@ import (
func InitRouter() *gin.Engine {
r := gin.Default()
// 路由
// 顶层路由分组
v3 := r.Group("/Api/V3")
{
// 测试用路由
v3.GET("Ping", controllers.Ping)
// 用户登录
v3.POST("User/Login", controllers.UserLogin)
}
return r