diff --git a/main.go b/main.go index e371235..3f7d80c 100644 --- a/main.go +++ b/main.go @@ -12,6 +12,7 @@ func main() { router.LoadHTMLGlob("./templates/*") router.Static("/static", "./static") + router.GET("/", func(c *gin.Context) { c.HTML(http.StatusOK, "index", nil) }) router.GET("/login", login) api := router.Group("/api/v1") { diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..9b11d49 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,21 @@ +{{define "index"}} + + +
+