serve static assets dir

This commit is contained in:
Sakooooo 2024-12-23 22:48:44 +04:00
parent 91b7aebde1
commit 102d01e3b6
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 5 additions and 0 deletions

4
assets/css/base.css Normal file
View file

@ -0,0 +1,4 @@
body {
color: white;
background-color: black;
}

View file

@ -11,6 +11,7 @@ func setupRouter() *gin.Engine {
// gin.DisableConsoleColor()
router := gin.Default()
router.Static("/assets", "./assets")
router.LoadHTMLGlob("templates/*")
// Ping test