Split transactions and assignments export into two endpoints
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
2022-02-23 20:50:59 +00:00
parent e0dc7800af
commit bc65249c03
3 changed files with 72 additions and 21 deletions

View File

@ -67,7 +67,8 @@ func (h *Handler) LoadRoutes(router *gin.Engine) {
authenticated.GET("/budget/:budgetid/autocomplete/categories", h.autocompleteCategories)
authenticated.DELETE("/budget/:budgetid", h.deleteBudget)
authenticated.POST("/budget/:budgetid/import/ynab", h.importYNAB)
authenticated.POST("/budget/:budgetid/export/ynab", h.exportYNAB)
authenticated.POST("/budget/:budgetid/export/ynab/transactions", h.exportYNABTransactions)
authenticated.POST("/budget/:budgetid/export/ynab/assignments", h.exportYNABAssignments)
authenticated.POST("/budget/:budgetid/settings/clear", h.clearBudget)
budget := authenticated.Group("/budget")