mirror of
https://github.com/rodneyosodo/uber4freefood.git
synced 2026-06-23 04:10:18 +00:00
16 lines
340 B
Go
16 lines
340 B
Go
package app
|
|
|
|
import (
|
|
u "userService2/utils"
|
|
"net/http"
|
|
)
|
|
|
|
var NotFoundHandler = func(next http.Handler) http.Handler {
|
|
|
|
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
w.WriteHeader(http.StatusNotFound)
|
|
u.Respond(w, u.Message(false, "This resources was not found on our server"))
|
|
next.ServeHTTP(w, r)
|
|
})
|
|
}
|