patchman/server/api/endpoint/packageList.go

17 lines
339 B
Go
Raw Normal View History

package endpoint
2023-10-26 14:56:36 +02:00
import (
"github.com/gin-gonic/gin"
"net/http"
)
2023-10-26 13:59:10 +02:00
import "git.jmbit.de/jmb/patchman/common"
func PackageList(c *gin.Context) {
2023-10-26 13:59:10 +02:00
var packageList common.PackageList
2023-10-26 14:56:36 +02:00
if err := c.ShouldBindJSON(&packageList); err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return
}
c.Status(http.StatusOK)
}