patchman/server/api/router.go

15 lines
343 B
Go
Raw Normal View History

package api
import (
"git.jmbit.de/jmb/patchman/server/api/endpoint"
"github.com/gin-gonic/gin"
)
func GroupV0(router *gin.Engine) *gin.Engine {
v0 := router.Group("/v0")
endpointGroup := v0.Group("/endpoint")
endpointGroup.POST("/register", endpoint.Register)
endpointGroup.POST("/packagelist", endpoint.PackageList)
return router
}