diff --git a/doc.go b/doc.go index dd79820..aa568f3 100644 --- a/doc.go +++ b/doc.go @@ -13,7 +13,7 @@ API In order to add a new package POST a json object to the following route: - POST /v0/package/ + POST / A sample json object: diff --git a/server.go b/server.go index 787dfcb..eef7095 100644 --- a/server.go +++ b/server.go @@ -36,9 +36,8 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) { return } s.storage.Add(p) - case "PATCH": default: - http.Error(w, fmt.Sprintf("unsupported method %q; accepted: POST, GET, PATCH", req.Method), http.StatusMethodNotAllowed) + http.Error(w, fmt.Sprintf("unsupported method %q; accepted: POST, GET", req.Method), http.StatusMethodNotAllowed) } }