feat: Support for loading Servarr API tokens from a file

This commit is contained in:
2025-02-27 16:53:29 -07:00
parent 0167753cfe
commit 111485e7c4
6 changed files with 57 additions and 21 deletions
+2 -1
View File
@@ -213,6 +213,7 @@ impl<'a, 'b> Network<'a, 'b> {
uri,
api_token,
ssl_cert_path,
..
},
default_port,
) = match network_event.into() {
@@ -252,7 +253,7 @@ impl<'a, 'b> Network<'a, 'b> {
uri,
method,
body,
api_token: api_token.to_owned(),
api_token: api_token.as_ref().expect("API token not found").clone(),
ignore_status_code: false,
}
}