master分支初始化
This commit is contained in:
parent
4deb5edc39
commit
213ba47a8b
|
@ -5,7 +5,6 @@ package routes
|
||||||
*/
|
*/
|
||||||
import (
|
import (
|
||||||
"qteam/app/http/controllers"
|
"qteam/app/http/controllers"
|
||||||
"qteam/app/http/controllers/backend"
|
|
||||||
"qteam/app/http/middlewares"
|
"qteam/app/http/middlewares"
|
||||||
"qteam/app/http/trace"
|
"qteam/app/http/trace"
|
||||||
"qteam/app/utils/metric"
|
"qteam/app/utils/metric"
|
||||||
|
@ -44,10 +43,10 @@ func RegisterRoute(router *gin.Engine) {
|
||||||
router.NoRoute(controllers.Error404)
|
router.NoRoute(controllers.Error404)
|
||||||
|
|
||||||
//api版本
|
//api版本
|
||||||
v1 := router.Group("/v1", middlewares.ValidateRequest())
|
//v1 := router.Group("/v1", middlewares.ValidateRequest())
|
||||||
{
|
//{
|
||||||
v1.GET("/login", backend.Login)
|
//
|
||||||
}
|
//}
|
||||||
|
|
||||||
router.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
|
router.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue