aboutsummaryrefslogtreecommitdiffstats
path: root/backend/internal/router/router.go
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswa Kalyan Bhuyan <biswa@surgot.in> 2025-04-27 23:02:42 +0530
committerLibravatarLibravatar Biswa Kalyan Bhuyan <biswa@surgot.in> 2025-04-27 23:02:42 +0530
commit538d933baef56d7ee76f78617b553d63713efa24 (patch)
tree3fcbc4208849dfa0e5dc8fe5761e103a3591c283 /backend/internal/router/router.go
parent3941d80ff120238b973451325b834ebd8377281e (diff)
downloadfinance-master.tar.gz
finance-master.tar.bz2
finance-master.zip
finance: feat: added the goal page with some improvements of uiHEADmaster
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)