Finish the big cleanup
This commit is contained in:
9
utils/htmx.go
Normal file
9
utils/htmx.go
Normal file
@ -0,0 +1,9 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func HtmxRedirect(w http.ResponseWriter, url string) {
|
||||
w.Header().Add("HX-Redirect", "/")
|
||||
}
|
Reference in New Issue
Block a user