15 lines
341 B
Go
15 lines
341 B
Go
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
|
|
}
|