base server and base html
This commit is contained in:
10
functions/notfound.go
Normal file
10
functions/notfound.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user