Compare commits

..

2 commits

Author SHA1 Message Date
3abca4c124
Release 0.0.6
All checks were successful
Run Tests on Code / run-tests (push) Successful in 36s
Build and release binary file and packages / test (push) Successful in 37s
Build and release binary file and packages / build (push) Successful in 40s
Build and release binary file and packages / upload-generic-package (push) Successful in 1s
Build and release binary file and packages / upload-debian-package (push) Successful in 2s
Build and release binary file and packages / create-release (push) Successful in 9s
2024-08-07 22:34:21 +02:00
37ec615cbd
Hotfix 2024-08-07 22:34:10 +02:00
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.5"
version = "0.0.6"
dependencies = [
"axum",
"chrono",

View file

@ -1,7 +1,7 @@
[package]
authors = ["Neshura"]
name = "api-backend"
version = "0.0.5"
version = "0.0.6"
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 {
directory: file.format,
folder_path: 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 {
directory: String,
folder_path: String,
api_key: String,
}