Use TemplateData for dashboard
This commit is contained in:
1 parent
1ee88466f2
commit
e8574ebd0a
1 file changed
+5
-1
+5
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user