#109 move last url to new layout

This commit is contained in:
Tim
2024-08-24 13:40:03 +02:00
parent 7a2f9e4be9
commit 1db7893db5
12 changed files with 92 additions and 170 deletions

View File

@@ -7,7 +7,7 @@ import (
"github.com/a-h/templ"
)
func HandleStaticUi(w http.ResponseWriter, r *http.Request) {
func HandleIndexAnd404(w http.ResponseWriter, r *http.Request) {
var comp templ.Component = nil
if r.URL.Path != "/" {
comp = templates.Layout(templates.NotFound())