mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-10 18:02:51 +00:00
17 lines
290 B
Go
17 lines
290 B
Go
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")
|
|
}
|