Refactoring token fetching code

Adding two APIs. One for auth and the other for the main app
This commit is contained in:
kdeng00
2025-08-27 15:58:31 -04:00
parent a85668d3cd
commit f4bd001d64
4 changed files with 73 additions and 32 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ impl TokenManager {
pub fn init(&mut self) {
let api = &mut self.api;
api.version = String::from("v1");
api.version = String::from(crate::parsers::api_parser::API_VERSION);
api.endpoint = format!("api/{}/login", api.version);
}