Added more code to the syncers module
It's not 100 percent done yet, I'll work on other modules
This commit is contained in:
@@ -40,7 +40,15 @@ impl Upload {
|
||||
|
||||
|
||||
fn retrieve_url(&self, song: &models::song::Song) -> String {
|
||||
let mut url: String = String::new();
|
||||
// let mut url: String = String::new();
|
||||
let api = &self.api;
|
||||
let mut url: String = String::from(&api.url);
|
||||
url += &String::from("api/");
|
||||
url += &String::from(&api.version);
|
||||
url += &String::from("/");
|
||||
url += &String::from(&api.endpoint);
|
||||
// url += &String::from("/");
|
||||
// url += &song.id.unwrap().to_string();
|
||||
|
||||
return url;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user