Initial commit

This commit is contained in:
2023-11-10 15:57:52 +01:00
commit eb87e1912f
351 changed files with 51965 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package controllers
import (
"github.com/unrolled/render"
"net/http"
)
func (server *Server) Home(w http.ResponseWriter, r *http.Request) {
render := render.New(render.Options{
Layout: "layout",
Extensions: []string{".html", ".tmpl"},
})
user := server.CurrentUser(w, r)
_ = render.HTML(w, http.StatusOK, "home", map[string]interface{}{
"user": user,
})
}