Enable static files
This commit is contained in:
parent
a122e5db0c
commit
db18731e43
3
main.go
3
main.go
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user