Implement basic routing
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user