#73 copy sign in form from other branch and some renaming
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 47s

This commit is contained in:
Tim
2024-08-25 22:25:32 +02:00
parent 4360d31bb2
commit 111cd2daab
13 changed files with 152 additions and 57 deletions

View File

@@ -1,7 +1,7 @@
package service
import (
"me-fit/templates"
"me-fit/template"
"net/http"
"github.com/a-h/templ"
@@ -10,10 +10,10 @@ import (
func HandleIndexAnd404(w http.ResponseWriter, r *http.Request) {
var comp templ.Component = nil
if r.URL.Path != "/" {
comp = templates.Layout(templates.NotFound())
comp = template.Layout(template.NotFound())
w.WriteHeader(http.StatusNotFound)
} else {
comp = templates.Layout(templates.Index())
comp = template.Layout(template.Index())
}
comp.Render(r.Context(), w)