This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
api/router.go
2022-12-17 00:11:33 +01:00

20 lines
209 B
Go

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
}