indexHandler()
This commit is contained in:
parent
71e0e943c0
commit
defd629535
13
controller/index_handler.go
Normal file
13
controller/index_handler.go
Normal file
@ -0,0 +1,13 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func indexHandler(c *gin.Context) {
|
||||
templateData := getTemplateData(c)
|
||||
|
||||
c.HTML(http.StatusOK, "index.django", templateData)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user