Use TemplateData for dashboard
This commit is contained in:
parent
1ee88466f2
commit
e8574ebd0a
@ -61,7 +61,11 @@ func (h *Handler) dashboard(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
c.HTML(http.StatusOK, "dashboard", token)
|
||||
d := TemplateData{
|
||||
Token: token,
|
||||
budgetService: h.Service,
|
||||
}
|
||||
c.HTML(http.StatusOK, "dashboard", d)
|
||||
}
|
||||
|
||||
func (h *Handler) restricted(c *gin.Context) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user