diff options
-rw-r--r-- | src/rest-api/cmd/main.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rest-api/cmd/main.go b/src/rest-api/cmd/main.go index ff91856..a493913 100644 --- a/src/rest-api/cmd/main.go +++ b/src/rest-api/cmd/main.go @@ -61,6 +61,11 @@ func main() { mux := http.NewServeMux() mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + if r.URL.Path != "/" { + http.NotFound(w, r) + return + } + fmt.Fprint(w, "Hello folks!") }) mux.Handle("/api/v1/file/", handler) |