patchman/client/api/router.go

12 lines
206 B
Go
Raw Normal View History

2023-10-22 16:11:13 +02:00
package api
import "github.com/gin-gonic/gin"
func GroupV0(router *gin.Engine) *gin.Engine {
v0 := router.Group("/v0")
v0.GET("/package", getPackageList)
v0.GET("/osinfo", getOSInfo)
return router
}