diff options
Diffstat (limited to 'utils/htmx.go')
-rw-r--r-- | utils/htmx.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/htmx.go b/utils/htmx.go new file mode 100644 index 0000000..3cdd35e --- /dev/null +++ b/utils/htmx.go @@ -0,0 +1,9 @@ +package utils + +import ( + "net/http" +) + +func HtmxRedirect(w http.ResponseWriter, url string) { + w.Header().Add("HX-Redirect", "/") +} |