From 6e3c40ccb5597a93c3e9d9b4766005c6de424f85 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Sun, 21 Apr 2024 01:24:47 +0200 Subject: Start of big cleanup --- htmx.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 htmx.go (limited to 'htmx.go') 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", "/") +} -- cgit