Remove unused HTML endpoints
This commit is contained in:
@ -43,22 +43,14 @@ func (h *Handler) Serve() {
|
||||
},
|
||||
)
|
||||
|
||||
router.GET("/login", h.login)
|
||||
router.GET("/register", h.register)
|
||||
|
||||
withLogin := router.Group("")
|
||||
withLogin.Use(h.verifyLoginWithRedirect)
|
||||
withLogin.GET("/admin", h.admin)
|
||||
withLogin.GET("/admin/clear-database", h.clearDatabase)
|
||||
|
||||
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/accounts", h.accounts)
|
||||
withBudget.GET("/budget/:budgetid/account/:accountid", h.account)
|
||||
withBudget.GET("/budget/:budgetid/settings", h.settings)
|
||||
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)
|
||||
@ -74,6 +66,7 @@ func (h *Handler) Serve() {
|
||||
authenticated.Use(h.verifyLoginWithForbidden)
|
||||
authenticated.GET("/dashboard", h.dashboard)
|
||||
authenticated.GET("/account/:accountid/transactions", h.transactionsForAccount)
|
||||
authenticated.GET("/admin/clear-database", h.clearDatabase)
|
||||
|
||||
withBudget2 := authenticated.Group("")
|
||||
withBudget2.Use(h.getImportantData)
|
||||
|
Reference in New Issue
Block a user