orbiter/api/notfound.go
Abdulrahman Solanke ad6ccde1bb switch to go mod
2023-05-19 00:58:50 +01:00

15 lines
244 B
Go

package api
import (
"net/http"
"github.com/sirupsen/logrus"
)
type NotFound struct{}
func (n NotFound) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(404)
logrus.Infof("%s %s not found.", r.Method, r.URL.String())
}