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
2022-01-29 10:21:05 +01:00

14 lines
274 B
Go

package routes
import (
"github.com/gin-gonic/gin"
"net/http"
)
// Index renders the HTML of the index page
func (controller Controller) Index(c *gin.Context) {
pd := controller.DefaultPageData(c)
pd.Title = pd.Trans("Home")
c.HTML(http.StatusOK, "index.html", pd)
}