package goals import ( "finance/backend/handlers" "github.com/gin-gonic/gin" ) // GetGoals returns all goals for the authenticated user func GetGoals() gin.HandlerFunc { handler := handlers.NewGoalHandler() return handler.GetGoals } // GetGoalByID returns a specific goal by ID func GetGoalByID() gin.HandlerFunc { handler := handlers.NewGoalHandler() return handler.GetGoal } // CreateGoal creates a new financial goal func CreateGoal() gin.HandlerFunc { handler := handlers.NewGoalHandler() return handler.CreateGoal } // UpdateGoal updates an existing goal func UpdateGoal() gin.HandlerFunc { handler := handlers.NewGoalHandler() return handler.UpdateGoal } // DeleteGoal deletes a goal func DeleteGoal() gin.HandlerFunc { handler := handlers.NewGoalHandler() return handler.DeleteGoal } // UpdateGoalProgress updates just the progress (current amount) of a goal func UpdateGoalProgress() gin.HandlerFunc { handler := handlers.NewGoalHandler() return handler.UpdateGoalProgress }