updated docs to match reality.
This commit is contained in:
parent
c63a62ab2a
commit
3644ddcd86
2
doc.go
2
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:
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user