diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-21 01:24:47 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-21 01:24:47 +0200 |
commit | 6e3c40ccb5597a93c3e9d9b4766005c6de424f85 (patch) | |
tree | 8a7e2262559e859cf1aed3ede95eeb6d52e62de2 /htmx.go | |
parent | e7800492c36efffc373c0926a8962b4eff768a4e (diff) |
Start of big cleanup
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", "/") +} |