Add admin routes

This commit is contained in:
2021-12-02 20:36:40 +00:00
parent 4011f3cace
commit 11d20eeb66
4 changed files with 46 additions and 9 deletions

View File

@ -54,6 +54,7 @@ func (h *Handler) Serve() {
authenticatedFrontend.GET("/budget/:budgetid", h.budget)
authenticatedFrontend.GET("/budget/:budgetid/accounts", h.accounts)
authenticatedFrontend.GET("/admin", h.admin)
authenticatedFrontend.GET("/admin/clear-database", h.clearDatabase)
}
api := router.Group("/api/v1")
{