init commit

This commit is contained in:
Stanislaw
2022-12-17 00:11:33 +01:00
parent eae5277f3d
commit 31d4d055ac
7 changed files with 375 additions and 0 deletions

19
router.go Normal file
View File

@@ -0,0 +1,19 @@
package main
import (
"github.com/gin-gonic/gin"
)
func InitRouter() *gin.Engine {
r := gin.New()
r.Use(gin.Logger())
r.Use(gin.Recovery())
apiv1 := r.Group("/api/v1")
apiv1.Use()
{
}
return r
}