mirror of
https://github.com/spaytac/orbiter.git
synced 2026-01-21 20:14:41 +00:00
15 lines
244 B
Go
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())
|
|
}
|