Test
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"xcpq_editor/internal/models"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func ImportHandler_PropertyTypesGroup(ctx *gin.Context) {
|
||||
// Handle the import request here
|
||||
|
||||
var importData []models.Property_Types_Group
|
||||
if err := ctx.ShouldBindJSON(&importData); err != nil {
|
||||
ctx.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
|
||||
return
|
||||
}
|
||||
|
||||
ctx.JSON(http.StatusOK, gin.H{
|
||||
"message": "Import successful",
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user