6 changed files with 16 additions and 19 deletions
@ -1,12 +1,17 @@ |
|||||||
package pages |
package pages |
||||||
|
|
||||||
import ( |
import ( |
||||||
|
"fmt" |
||||||
"github.com/gin-gonic/gin" |
"github.com/gin-gonic/gin" |
||||||
"net/http" |
"net/http" |
||||||
|
"sponsorahacker/utils" |
||||||
) |
) |
||||||
|
|
||||||
func Welcome(c *gin.Context) { |
func Welcome(c *gin.Context) { |
||||||
|
isLoggedIn := utils.CheckIfLoggedIn(c) |
||||||
|
fmt.Println("isLoggedIn:", isLoggedIn) |
||||||
c.HTML(http.StatusOK, "welcome.html", gin.H{ |
c.HTML(http.StatusOK, "welcome.html", gin.H{ |
||||||
"title": "Sponsor A Hacker", |
"title": "Sponsor A Hacker", |
||||||
|
"isLoggedIn": isLoggedIn, |
||||||
}) |
}) |
||||||
} |
} |
||||||
|
|||||||
Loading…
Reference in new issue