create base structure

This commit is contained in:
Stanislaw
2022-12-24 00:45:54 +01:00
parent 31d4d055ac
commit 3f17d6e985
6 changed files with 66 additions and 57 deletions

20
router/router.go Normal file
View File

@@ -0,0 +1,20 @@
package router
import "github.com/gin-gonic/gin"
//docs "github.com/go-project-name/docs"
func InitRouter() *gin.Engine {
r := gin.New()
//docs.SwaggerInfo.BasePath = "/api/v1"
r.Use(gin.Logger())
r.Use(gin.Recovery())
apiv1 := r.Group("/api/v1")
apiv1.Use()
{
r.GET("./", )
}
return r
}