refactor: remove extra version fields
Created instead.
@@ -19,10 +19,6 @@ pub struct Response {
// repo is here for go-ipfs and js-ipfs but we do not have full repo at the moment
// empty string is accepted by the tests
repo: &'static str,
- // required by rust-ipfs-api as of 0.7.0 at least
- system: &'static str,
- // required by rust-ipfs-api as of 0.7.0 at least
- golang: &'static str,
}
// https://docs-beta.ipfs.io/reference/http/api/#api-v0-version
@@ -33,8 +29,6 @@ pub async fn version(_query: Query) -> Result<impl warp::Reply, std::convert::In
version: env!("CARGO_PKG_VERSION"), // TODO: move over to rust-ipfs not to worry about syncing version numbers?
commit: env!("VERGEN_SHA_SHORT"),
repo: "",
- system: "",
- golang: "",
};
Ok(warp::reply::json(&response))
