serves static files

This commit is contained in:
2024-11-14 11:13:26 +01:00
parent 72ff6d3d9e
commit 9e5005a516
6 changed files with 32 additions and 1 deletions
+3 -1
View File
@@ -14,7 +14,9 @@ func main() {
htmlRender := ron.NewHTMLRender()
r.Renderer = htmlRender
r.GET("/", helloWorld)
r.Static("static", "static")
//r.GET("/", helloWorld)
r.GET("/json", helloWorldJSON)
r.POST("/another", anotherHelloWorld)
r.GET("/html", helloWorldHTML)