Enable static files

This commit is contained in:
Jan Bader 2016-11-25 17:11:02 +01:00
parent a122e5db0c
commit db18731e43

View File

@ -10,10 +10,11 @@ func main() {
router := gin.Default() router := gin.Default()
router.LoadHTMLGlob("./templates/*") router.LoadHTMLGlob("./templates/*")
// Middleware // Middleware
router.Static("static", "static")
//e.Use(middleware.Logger()) //e.Use(middleware.Logger())
//e.Use(middleware.Recover()) //e.Use(middleware.Recover())
//e.Use(middleware.Static("static"))
router.GET("/login.html", login) router.GET("/login.html", login)
a := router.Group("/api/v1") a := router.Group("/api/v1")