#109 move last url to new layout*A
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 1m6s
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 1m6s
This commit is contained in:
@@ -11,6 +11,7 @@ func HandleIndexAnd404(w http.ResponseWriter, r *http.Request) {
|
||||
var comp templ.Component = nil
|
||||
if r.URL.Path != "/" {
|
||||
comp = templates.Layout(templates.NotFound())
|
||||
w.WriteHeader(http.StatusNotFound)
|
||||
} else {
|
||||
comp = templates.Layout(templates.Index())
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@ func App(w http.ResponseWriter, r *http.Request) {
|
||||
comp := templates.App()
|
||||
layout := templates.Layout(comp)
|
||||
layout.Render(r.Context(), w)
|
||||
w.WriteHeader(http.StatusOK)
|
||||
}
|
||||
|
||||
func NewWorkout(db *sql.DB) http.HandlerFunc {
|
||||
|
||||
Reference in New Issue
Block a user