Implement YNAB Import in Vue
This commit is contained in:
@ -48,7 +48,6 @@ func (h *Handler) Serve() {
|
||||
|
||||
withBudget := router.Group("")
|
||||
withBudget.Use(h.verifyLoginWithForbidden)
|
||||
withBudget.Use(h.getImportantData)
|
||||
withBudget.GET("/budget/:budgetid/:year/:month", h.budgeting)
|
||||
withBudget.GET("/budget/:budgetid/all-accounts", h.allAccounts)
|
||||
withBudget.GET("/budget/:budgetid/settings/clear", h.clearBudget)
|
||||
@ -69,8 +68,8 @@ func (h *Handler) Serve() {
|
||||
authenticated.GET("/admin/clear-database", h.clearDatabase)
|
||||
|
||||
withBudget2 := authenticated.Group("")
|
||||
withBudget2.Use(h.getImportantData)
|
||||
withBudget2.GET("/budget/:budgetid", h.budgeting)
|
||||
withBudget2.POST("/budget/:budgetid/import/ynab", h.importYNAB)
|
||||
|
||||
budget := authenticated.Group("/budget")
|
||||
budget.POST("/new", h.newBudget)
|
||||
@ -78,7 +77,6 @@ func (h *Handler) Serve() {
|
||||
transaction := authenticated.Group("/transaction")
|
||||
transaction.POST("/new", h.newTransaction)
|
||||
transaction.POST("/:transactionid", h.newTransaction)
|
||||
transaction.POST("/import/ynab", h.importYNAB)
|
||||
|
||||
router.Run(":1323")
|
||||
}
|
||||
|
Reference in New Issue
Block a user