This commit is contained in:
fede committed 2026-06-19 23:04:13 -03:00
1 parent 6c0e44cb45
commit 90e76d4963
11 files changed
+112 -38

No files matched your search

+2 -2
View File
@@ -12,13 +12,13 @@ import (
func CrearRepuesto(c *gin.Context){
var repuesto models.Repuesto
var repuesto *models.Repuesto
if err := c.ShouldBindJSON(&repuesto); err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return
}
if err := r.ObtenerRepositorios().Repuesto.Crear(&repuesto); err != nil {
if err := r.ObtenerRepositorios().Repuesto.Crear(repuesto); err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
return
}