Files
hub/functions/notfound.go
2024-04-10 20:02:31 +02:00

11 lines
182 B
Go

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