Implement basic routing

This commit is contained in:
2022-01-18 13:29:51 +00:00
parent 2112192670
commit d0e52ddfa6
8 changed files with 67 additions and 17 deletions

View File

@ -18,7 +18,7 @@ func (h *Handler) dashboard(c *gin.Context) {
d := DashboardData{
Budgets: budgets,
}
c.HTML(http.StatusOK, "dashboard.html", d)
c.JSON(http.StatusOK, d)
}
type DashboardData struct {