Actuall serve static files
This commit is contained in:
parent
825bf7be04
commit
637efda810
3
main.go
3
main.go
@ -10,9 +10,8 @@ func main() {
|
|||||||
router := gin.Default()
|
router := gin.Default()
|
||||||
|
|
||||||
router.LoadHTMLGlob("./templates/*")
|
router.LoadHTMLGlob("./templates/*")
|
||||||
|
router.Static("/static", "./static")
|
||||||
// Middleware
|
// Middleware
|
||||||
router.Static("static", "static")
|
|
||||||
//e.Use(middleware.Logger())
|
//e.Use(middleware.Logger())
|
||||||
//e.Use(middleware.Recover())
|
//e.Use(middleware.Recover())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user