Enable static files
This commit is contained in:
1 parent
a122e5db0c
commit
db18731e43
1 file changed
+2
-1
@@ -10,10 +10,11 @@ func main() {
|
||||
router := gin.Default()
|
||||
|
||||
router.LoadHTMLGlob("./templates/*")
|
||||
|
||||
// Middleware
|
||||
router.Static("static", "static")
|
||||
//e.Use(middleware.Logger())
|
||||
//e.Use(middleware.Recover())
|
||||
//e.Use(middleware.Static("static"))
|
||||
|
||||
router.GET("/login.html", login)
|
||||
a := router.Group("/api/v1")
|
||||
|
||||
Reference in new issue
Block a user