Refactoring token fetching code
Adding two APIs. One for auth and the other for the main app
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user