Skip to content

Commit cb43986

Browse files
committed
added /not-found to mockserver
1 parent 91f788e commit cb43986

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

utils/mockserver/mockserver.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ func main() {
4848
fmt.Fprint(w, `{"message":"Hello from mock endpoint"}`)
4949
})
5050

51+
http.HandleFunc("/not-found", func(w http.ResponseWriter, req *http.Request) {
52+
w.WriteHeader(http.StatusNotFound)
53+
54+
fmt.Fprint(w, "Not Found")
55+
})
56+
5157
logger.Info("Mock server running at http://127.0.0.1:", port)
5258

5359
err = http.ListenAndServe("127.0.0.1:" + port, nil)

0 commit comments

Comments
 (0)