From 538d933baef56d7ee76f78617b553d63713efa24 Mon Sep 17 00:00:00 2001 From: Biswa Kalyan Bhuyan Date: Sun, 27 Apr 2025 23:02:42 +0530 Subject: finance: feat: added the goal page with some improvements of ui --- backend/internal/router/router.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'backend/internal/router') 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) -- cgit v1.2.3-59-g8ed1b