Implement basic routing

This commit is contained in:
jacob1123 committed 2022-01-18 13:29:51 +00:00
1 parent 2112192670
commit d0e52ddfa6
8 files changed
+67 -17

No files matched your search

+1 -1
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 {