feat(settings): finish download dir CRUD interface

This commit is contained in:
DecDuck
2024-11-25 16:09:29 +11:00
parent 384f7a5be9
commit a580a46e17
3 changed files with 44 additions and 9 deletions

View File

@ -10,7 +10,7 @@ mod tests;
use crate::db::DatabaseImpls;
use auth::{auth_initiate, generate_authorization_header, recieve_handshake};
use db::{add_new_download_dir, fetch_download_dir_stats, DatabaseInterface, DATA_ROOT_DIR};
use db::{add_download_dir, delete_download_dir, fetch_download_dir_stats, DatabaseInterface, DATA_ROOT_DIR};
use downloads::download_commands::*;
use downloads::download_manager::DownloadManagerBuilder;
use downloads::download_manager_interface::DownloadManager;
@ -126,7 +126,8 @@ pub fn run() {
// Library
fetch_library,
fetch_game,
add_new_download_dir,
add_download_dir,
delete_download_dir,
fetch_download_dir_stats,
// Downloads
download_game,