gosimplenpm/handler/notfound.go

11 lines
219 B
Go

package handler
import (
"net/http"
)
// This handler is executed when the router cannot match any route
func NotFound(w http.ResponseWriter, r *http.Request) {
http.Error(w, "Invalid url", http.StatusBadRequest)
}