Compare commits

..

No commits in common. "3abca4c124d15fef8d3785449e2e9d106b183922" and "33e668be65eef8868cf51ba61cc402c10034f402" have entirely different histories.

3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View file

@ -34,7 +34,7 @@ dependencies = [
[[package]]
name = "api-backend"
version = "0.0.6"
version = "0.0.5"
dependencies = [
"axum",
"chrono",

View file

@ -1,7 +1,7 @@
[package]
authors = ["Neshura"]
name = "api-backend"
version = "0.0.6"
version = "0.0.5"
edition = "2021"
description = "API Backend For Easier Uploading To Kavita"
license = "GPL-3.0-or-later"

View file

@ -203,7 +203,7 @@ async fn upload_file(state: &mut App, request: Request) {
let url = format!("{}/api/Library/scan-folder", var("KAVITA_URL").expect("KAVITA_URL needs to be set in the .env file"));
let request_body = LibraryScanBody {
folder_path: file.format,
directory: file.format,
api_key: var("KAVITA_API_KEY").expect("KAVITA_API_KEY needs to be set in the .env file")
};
@ -249,6 +249,6 @@ async fn stream_to_file(path: &PathBuf, stream: BodyDataStream) -> Result<(), (S
#[derive(Serialize)]
#[serde(rename_all="camelCase")]
struct LibraryScanBody {
folder_path: String,
directory: String,
api_key: String,
}