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