mek sock to http server and add playlsit funktion

This commit is contained in:
2026-06-23 17:42:43 +02:00
parent 3784b1d31d
commit 792d41517e
14 changed files with 1600 additions and 230 deletions
+11
View File
@@ -34,3 +34,14 @@ pub fn db_path() -> String {
p.push("songs.db");
p.to_string_lossy().to_string()
}
pub fn config_path() -> String {
let mut p = base_dir();
p.push("config.toml");
p.to_string_lossy().to_string()
}
pub fn ensure_dirs() {
let _ = std::fs::create_dir_all(base_dir());
let _ = std::fs::create_dir_all(songs_dir());
}