13 lines
173 B
Go
13 lines
173 B
Go
|
package route
|
||
|
|
||
|
import (
|
||
|
"github.com/gin-gonic/gin"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func index(c *gin.Context) {
|
||
|
c.HTML(http.StatusOK, "index.html", gin.H{
|
||
|
"title": "Main website",
|
||
|
})
|
||
|
}
|