base server and base html

This commit is contained in:
lnino
2024-04-10 19:53:00 +02:00
commit e4b0fcdd9d
9 changed files with 138 additions and 0 deletions

10
functions/notfound.go Normal file
View File

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