1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-11 18:32:50 +00:00

working on not found handler

This commit is contained in:
2016-05-12 00:30:50 -05:00
parent 92cbe02e2e
commit d680c85c4a
3 changed files with 19 additions and 0 deletions

16
controller/404.go Normal file
View File

@@ -0,0 +1,16 @@
package controller
import (
//"encoding/json"
"fmt"
"github.com/julienschmidt/httprouter"
"net/http"
)
// IndexGET displays the home page
func NotFound404(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
http.Redirect(w, r, "/404.html", 404)
fmt.Fprint(w, "test")
}