+ Statics

+ Templates
This commit is contained in:
Daniel Legt 2022-05-19 00:31:13 +03:00
parent 57c4bcf063
commit cb58f3e87d
1 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,12 @@ func main() {
// Initialize the router // Initialize the router
router := gin.Default() router := gin.Default()
// Read HTML Templates
router.LoadHTMLGlob("templates/**/*.html")
// Load in static path
router.Static("/static", "static/")
router.Run(":8080") router.Run(":8080")
} }