You've already forked golang-base-project
Initial commit
This commit is contained in:
14
routes/index.go
Normal file
14
routes/index.go
Normal file
@ -0,0 +1,14 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func (controller Controller) Index(c *gin.Context) {
|
||||
pd := PageData{
|
||||
Title: "Home",
|
||||
IsAuthenticated: isAuthenticated(c),
|
||||
}
|
||||
c.HTML(http.StatusOK, "index.html", pd)
|
||||
}
|
Reference in New Issue
Block a user