Spaces:
Sleeping
Sleeping
Root route
Browse files
main.go
CHANGED
|
@@ -137,11 +137,12 @@ func main() {
|
|
| 137 |
r.StaticFS("/assets", gin.Dir("./assets", false))
|
| 138 |
|
| 139 |
r.GET("/", func(c *gin.Context) {
|
|
|
|
| 140 |
// Load HTML templates from ./frontend folder
|
| 141 |
// Render the template by name
|
| 142 |
r.LoadHTMLFiles("index.html")
|
| 143 |
// Render the template by name
|
| 144 |
-
|
| 145 |
c.HTML(http.StatusOK, "index.html", gin.H{})
|
| 146 |
})
|
| 147 |
|
|
|
|
| 137 |
r.StaticFS("/assets", gin.Dir("./assets", false))
|
| 138 |
|
| 139 |
r.GET("/", func(c *gin.Context) {
|
| 140 |
+
log.Println("root route")
|
| 141 |
// Load HTML templates from ./frontend folder
|
| 142 |
// Render the template by name
|
| 143 |
r.LoadHTMLFiles("index.html")
|
| 144 |
// Render the template by name
|
| 145 |
+
|
| 146 |
c.HTML(http.StatusOK, "index.html", gin.H{})
|
| 147 |
})
|
| 148 |
|