Implement clear
This commit is contained in:
@ -50,7 +50,6 @@ func (h *Handler) Serve() {
|
||||
withBudget.Use(h.verifyLoginWithForbidden)
|
||||
withBudget.GET("/budget/:budgetid/:year/:month", h.budgeting)
|
||||
withBudget.GET("/budget/:budgetid/all-accounts", h.allAccounts)
|
||||
withBudget.GET("/budget/:budgetid/settings/clear", h.clearBudget)
|
||||
withBudget.GET("/budget/:budgetid/settings/clean-negative", h.cleanNegativeBudget)
|
||||
withBudget.GET("/budget/:budgetid/transaction/:transactionid", h.transaction)
|
||||
|
||||
@ -66,10 +65,9 @@ func (h *Handler) Serve() {
|
||||
authenticated.GET("/dashboard", h.dashboard)
|
||||
authenticated.GET("/account/:accountid/transactions", h.transactionsForAccount)
|
||||
authenticated.GET("/admin/clear-database", h.clearDatabase)
|
||||
|
||||
withBudget2 := authenticated.Group("")
|
||||
withBudget2.GET("/budget/:budgetid", h.budgeting)
|
||||
withBudget2.POST("/budget/:budgetid/import/ynab", h.importYNAB)
|
||||
authenticated.GET("/budget/:budgetid", h.budgeting)
|
||||
authenticated.POST("/budget/:budgetid/import/ynab", h.importYNAB)
|
||||
authenticated.POST("/budget/:budgetid/settings/clear", h.clearBudget)
|
||||
|
||||
budget := authenticated.Group("/budget")
|
||||
budget.POST("/new", h.newBudget)
|
||||
|
Reference in New Issue
Block a user