From cb58f3e87d98a215a4e3bb807c6e8135799cb5c6 Mon Sep 17 00:00:00 2001 From: Kato Twofold Date: Thu, 19 May 2022 00:31:13 +0300 Subject: [PATCH] + Statics + Templates --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index dcb27ce..9dd371a 100644 --- a/main.go +++ b/main.go @@ -15,6 +15,12 @@ func main() { // Initialize the router router := gin.Default() + // Read HTML Templates + router.LoadHTMLGlob("templates/**/*.html") + + // Load in static path + router.Static("/static", "static/") + router.Run(":8080") }