You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
325 B

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,
})
}