algunos refactors y arregle el tema de que no se eliminaban los

subgrupos
This commit is contained in:
fede committed 2026-06-18 02:25:23 -03:00
1 parent ab88be0ba5
commit df2412f29a
25 files changed
+415 -261

No files matched your search

+10 -1
View File
@@ -1,9 +1,18 @@
package repuestos
import (
"net/http"
"github.com/gin-gonic/gin"
r "repuestera_back/repositorios"
)
func ObtenerRepuestos(c *gin.Context){
repuestos, err := r.ObtenerRepositorios().Repuesto.ObtenerTodos()
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
return
}
c.JSON(http.StatusOK, repuestos)
}