Finish the big cleanup

This commit is contained in:
2024-04-21 22:52:21 +02:00
parent 6e3c40ccb5
commit baad757371
8 changed files with 316 additions and 250 deletions

9
utils/htmx.go Normal file
View File

@ -0,0 +1,9 @@
package utils
import (
"net/http"
)
func HtmxRedirect(w http.ResponseWriter, url string) {
w.Header().Add("HX-Redirect", "/")
}