Added templating, versioning, middleware, etc

This commit is contained in:
2025-07-14 13:53:50 -04:00
parent 8bc9849776
commit 4020812549
11 changed files with 82 additions and 2 deletions

12
web/routes/index.go Normal file
View File

@ -0,0 +1,12 @@
package routes
import (
"net/http"
"github.com/flamego/template"
)
func GetDashboard(t template.Template, data template.Data) {
data["title"] = "Dashboard"
t.HTML(http.StatusOK, "index/dashboard")
}