Files
old-backend/controllers/CompaniesController.go

19 lines
511 B
Go
Raw Normal View History

2023-09-06 11:58:33 +02:00
package controllers
// import (
// "net/http"
2023-09-11 08:08:24 +02:00
// models "gitlab.com/pactual1/backend/models"
2023-09-06 11:58:33 +02:00
2023-09-11 08:08:24 +02:00
// "gitlab.com/pactual1/backend/models"
2023-09-06 11:58:33 +02:00
// "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})
// }