func GetUser(c *gin.Context) {
	fmt.Println("GET USER!")
	c.Header("X-Api-Correlation-Id", "1234")

	id, _ := strconv.Atoi(c.Param("id"))
	user, err := userRepository.ByID(id)

	if err != nil {
		c.JSON(http.StatusNotFound, gin.H{"status": "file not found"})
	} else {
		c.JSON(http.StatusOK, user)
	}
}
func GetUser(c *gin.Context) {
	fmt.Println("GET USER!")
	c.Header("X-Api-Correlation-Id", "1234")

	id, _ := strconv.Atoi(c.Param("id"))
	user, err := userRepository.ByID(id)

	if err != nil {
		c.JSON(http.StatusNotFound, gin.H{"status": "file not found"})
	} else {
		c.JSON(http.StatusOK, user)
	}
}
func GetUser ( c * gin . Context ) { fmt . Println ( " " ) c . Header ( " " , " " ) id , _ := strconv . Atoi ( c . Param ( " " ) ) user , err := userRepository . ByID ( id ) if err != nil { c . JSON ( http . StatusNotFound , gin . H { " " : " " } ) } else { c . JSON ( http . StatusOK , user ) } }
// GetUser fetches a user if authenticated and exists
GetUser fetches a user if authenticated and exists