change templates
This commit is contained in:
@@ -24,11 +24,6 @@ func Index(c *gin.Context) {
|
||||
user := session.Get(globals.UserKey)
|
||||
logger := slog.Get(c)
|
||||
logger.Info("IndexGetHandler", globals.UserKey, user)
|
||||
c.HTML(http.StatusOK, "home", gin.H{
|
||||
"title": "Kontor Gin",
|
||||
"version": "0.4.0",
|
||||
"message": "This is an index page...",
|
||||
"user": user,
|
||||
})
|
||||
|
||||
data := globals.GetDefaultValues(user, "This is an index page...")
|
||||
c.HTML(http.StatusOK, "home", data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user