aboutsummaryrefslogtreecommitdiffstats
path: root/src/item.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.rs')
-rw-r--r--src/item.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/item.rs b/src/item.rs
index 3d9ad1e..532ac16 100644
--- a/src/item.rs
+++ b/src/item.rs
@@ -15,7 +15,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use crate::{
- client::{self, Client},
+ client::Client,
error::Error,
};
use serde::Serialize;
@@ -132,10 +132,10 @@ impl<'a> ItemBuilder<'a> {
dbg!(self);
if self.files.is_empty() {
self.client
- .post_data(client::ZOTAPI_ITEM_UPDATE_PATH, &self.data)
+ .post_data("item/update", &self.data)
} else {
self.client
- .post_multipart(client::ZOTAPI_ITEM_UPDATE_PATH, &self.data, &self.files)
+ .post_multipart("item/update", &self.data, &self.files)
}
}
}