2023-10-22 17:46:46 +02:00
|
|
|
package endpoint
|
2023-10-26 13:54:29 +02:00
|
|
|
|
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"
|
2023-10-26 13:54:29 +02:00
|
|
|
|
|
|
|
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)
|
2023-10-26 13:54:29 +02:00
|
|
|
}
|