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