refactor and update

This commit is contained in:
YouROK
2020-11-11 17:01:14 +03:00
parent b4a20760cc
commit 0d9f68c3c8
11 changed files with 258 additions and 13 deletions

View File

@@ -0,0 +1,15 @@
package pages
import (
"github.com/gin-gonic/gin"
"server/web/pages/template"
)
var temp *template.Template
func SetupRoute(route *gin.Engine) {
temp = template.InitTemplate(route)
route.GET("/", mainPage)
}