package controllers // import ( // "net/http" // models "novatech/models" // "github.com/VoidArtanis/go-rest-boilerplate/models" // "github.com/gin-gonic/gin" // ) // func Companies(c *gin.Context) { // var companies []models.Company // // Fetch companies from DB here // if err := models.FetchCompanies(&companies); err != nil { // c.JSON(http.StatusInternalServerError, gin.H{"error": "Error fetching companies"}) // return // } // c.JSON(http.StatusOK, gin.H{"companies": companies}) // }