aboutsummaryrefslogtreecommitdiffstats
path: root/backend/internal/router/router.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/internal/router/router.go')
-rw-r--r--backend/internal/router/router.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/internal/router/router.go b/backend/internal/router/router.go
index 3a4d413..d6e05a5 100644
--- a/backend/internal/router/router.go
+++ b/backend/internal/router/router.go
@@ -110,6 +110,12 @@ func SetupRouter(cfg *config.Config) *gin.Engine {
protected.DELETE("/goals/:id", goalHandler.DeleteGoal)
protected.PATCH("/goals/:id/progress", goalHandler.UpdateGoalProgress)
+ // New Goal Progress Tracking routes
+ protected.GET("/goals/:id/progress", goalHandler.GetGoalProgressDetails)
+ protected.GET("/goals/progress/all", goalHandler.GetAllGoalsProgressDetails)
+ protected.POST("/goals/:id/link-transaction", goalHandler.LinkTransactionToGoal)
+ protected.POST("/goals/:id/recalculate", goalHandler.RecalculateGoalProgress)
+
// Loan routes
protected.GET("/loans", loanHandler.GetLoans)
protected.GET("/loans/:id", loanHandler.GetLoanByID)