master分支初始化
This commit is contained in:
parent
c05c75362f
commit
4deb5edc39
|
@ -4,7 +4,6 @@ import (
|
|||
"github.com/gin-gonic/gin"
|
||||
"github.com/qit-team/snow-core/http/middleware"
|
||||
"qteam/app/http/controllers"
|
||||
"qteam/app/http/controllers/backend"
|
||||
"qteam/app/http/middlewares"
|
||||
"qteam/app/http/trace"
|
||||
"qteam/app/utils"
|
||||
|
@ -22,21 +21,10 @@ func RegisterAdminRoute(router *gin.Engine) {
|
|||
router.Use(middlewares.Trace())
|
||||
}
|
||||
}
|
||||
admin := router.Group("/admin")
|
||||
{
|
||||
api := admin.Group("/api")
|
||||
{
|
||||
api.POST("/userList", backend.UserList)
|
||||
}
|
||||
}
|
||||
|
||||
v1 := router.Group("/admin/api/v1")
|
||||
{
|
||||
products := v1.Group("/product")
|
||||
products.POST("/create", middlewares.ValidateRequest(), backend.ProductCreateHandler)
|
||||
products.GET("/query", backend.ProductQueryHandler)
|
||||
products.PUT("/update", middlewares.ValidateRequest(), backend.ProductUpdateHandler)
|
||||
products.DELETE("/delete", backend.ProductDeleteHandler)
|
||||
}
|
||||
//v1 := router.Group("/admin/api/v1")
|
||||
//{
|
||||
//
|
||||
//}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue