Archived
Template
1
0
This repository has been archived on 2023-12-20. You can view files and clone it, but cannot push or open issues or pull requests.
Files
golang-base-project/routes/index.go
Markus Tenghamn b5ba3d0387 Various fixes (#5)
* Fixes #1

* Fixes #2

* Fixes #3

* Fixes #4
2021-12-13 20:33:50 +01:00

16 lines
303 B
Go

package routes
import (
"github.com/gin-gonic/gin"
"net/http"
)
func (controller Controller) Index(c *gin.Context) {
pd := PageData{
Title: "Home",
IsAuthenticated: isAuthenticated(c),
CacheParameter: controller.config.CacheParameter,
}
c.HTML(http.StatusOK, "index.html", pd)
}