diff --git a/server/account.go b/server/account.go index 65b0908..d92746c 100644 --- a/server/account.go +++ b/server/account.go @@ -69,5 +69,5 @@ func (h *Handler) editAccount(c *gin.Context) { return } - h.returnBudgetingData(c, account.BudgetID) + h.getBudget(c, account.BudgetID) } diff --git a/server/budgeting.go b/server/budgeting.go index b8341b7..814d94b 100644 --- a/server/budgeting.go +++ b/server/budgeting.go @@ -126,7 +126,7 @@ type BudgetingResponse struct { Budget postgres.Budget } -func (h *Handler) budgeting(c *gin.Context) { +func (h *Handler) budget(c *gin.Context) { budgetID := c.Param("budgetid") budgetUUID, err := uuid.Parse(budgetID) if err != nil { @@ -134,10 +134,10 @@ func (h *Handler) budgeting(c *gin.Context) { return } - h.returnBudgetingData(c, budgetUUID) + h.getBudget(c, budgetUUID) } -func (h *Handler) returnBudgetingData(c *gin.Context, budgetUUID uuid.UUID) { +func (h *Handler) getBudget(c *gin.Context, budgetUUID uuid.UUID) { budget, err := h.Service.GetBudget(c.Request.Context(), budgetUUID) if err != nil { c.AbortWithError(http.StatusNotFound, err)