Files
hub/functions/notfound.go
2024-04-10 19:53:00 +02:00

11 lines
185 B
Go

package infini
import "net/http"
func NotFound(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusNotFound)
http.Redirect(w, r, "/", http.StatusSeeOther)
return
}