chore: Swapped over to using a macro with an offline mode

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2025-01-30 09:35:43 +11:00
parent 810fbdfe49
commit bb23e88ead
7 changed files with 17 additions and 76 deletions

View File

@ -69,7 +69,7 @@ pub struct StatsUpdateEvent {
pub fn fetch_library_logic(app: AppHandle) -> Result<Vec<Game>, RemoteAccessError> {
let header = generate_authorization_header();
let client = reqwest::blocking::Client::builder().;
let client = reqwest::blocking::Client::new();
let response = make_request(&client, &["/api/v1/client/user/library"], &[], |f| {
f.header("Authorization", header)
})?