Spaces:
Sleeping
Sleeping
Rm route
Browse files
main.go
CHANGED
|
@@ -136,11 +136,11 @@ func main() {
|
|
| 136 |
// Serve static files from ./frontend, no directory listing
|
| 137 |
r.StaticFS("/assets", gin.Dir("./assets", false))
|
| 138 |
|
| 139 |
-
r.GET("/", func(c *gin.Context) {
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
})
|
| 144 |
|
| 145 |
// Route to serve parsed HTML template partials
|
| 146 |
r.GET("/partials", func(c *gin.Context) {
|
|
|
|
| 136 |
// Serve static files from ./frontend, no directory listing
|
| 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 |
+
// c.HTML(http.StatusOK, "index.html", gin.H{})
|
| 143 |
+
// })
|
| 144 |
|
| 145 |
// Route to serve parsed HTML template partials
|
| 146 |
r.GET("/partials", func(c *gin.Context) {
|