diff options
Diffstat (limited to 'htmx.go')
-rw-r--r-- | htmx.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -0,0 +1,9 @@ +package main + +import ( + "net/http" +) + +func HtmxRedirect(w http.ResponseWriter, url string) { + w.Header().Add("HX-Redirect", "/") +} |