serve static assets dir
This commit is contained in:
parent
91b7aebde1
commit
102d01e3b6
2 changed files with 5 additions and 0 deletions
4
assets/css/base.css
Normal file
4
assets/css/base.css
Normal file
|
@ -0,0 +1,4 @@
|
|||
body {
|
||||
color: white;
|
||||
background-color: black;
|
||||
}
|
1
main.go
1
main.go
|
@ -11,6 +11,7 @@ func setupRouter() *gin.Engine {
|
|||
// gin.DisableConsoleColor()
|
||||
router := gin.Default()
|
||||
|
||||
router.Static("/assets", "./assets")
|
||||
router.LoadHTMLGlob("templates/*")
|
||||
|
||||
// Ping test
|
||||
|
|
Loading…
Reference in a new issue