updated docs to match reality.

This commit is contained in:
Stephen McQuay 2016-02-14 21:46:12 -08:00
parent c63a62ab2a
commit 3644ddcd86
2 changed files with 2 additions and 3 deletions

2
doc.go
View File

@ -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:

View File

@ -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)
}
}