diff --git a/controller/index_handler.go b/controller/index_handler.go new file mode 100644 index 0000000..5e32c39 --- /dev/null +++ b/controller/index_handler.go @@ -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) +}