Add index

This commit is contained in:
2016-12-07 17:19:11 +01:00
parent 39141ab2e6
commit f4e227957b
2 changed files with 22 additions and 0 deletions

View File

@@ -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")
{