diff options
author | 2025-04-27 23:02:42 +0530 | |
---|---|---|
committer | 2025-04-27 23:02:42 +0530 | |
commit | 538d933baef56d7ee76f78617b553d63713efa24 (patch) | |
tree | 3fcbc4208849dfa0e5dc8fe5761e103a3591c283 /backend/internal/router | |
parent | 3941d80ff120238b973451325b834ebd8377281e (diff) | |
download | finance-master.tar.gz finance-master.tar.bz2 finance-master.zip |
Diffstat (limited to 'backend/internal/router')
-rw-r--r-- | backend/internal/router/router.go | 6 |
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) |