Files
old-backend/controllers/CompaniesController.go
2023-09-06 11:58:33 +02:00

19 lines
507 B
Go

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})
// }