Mobile support to come.
pub mod auth;
const PUBLIC_URL: &str = "https://www.gitdot.io";
const SERVER_URL: &str = "https://api.gitdot.io";
const CLIENT_ID: &str = "gitdot-cli";
pub struct ApiClient {
client: reqwest::Client,
public_url: String,
server_url: String,
client_id: String,
}
impl ApiClient {
pub fn new() -> Self {
Self {
client: reqwest::Client::new(),
public_url: PUBLIC_URL.to_string(),
server_url: SERVER_URL.to_string(),
client_id: CLIENT_ID.to_string(),
}
}
pub fn get_public_url(&self) -> &str {
&self.public_url
}
}
updated public url to include www
mikkel•2b911f32d ago
fixed sending request to wrong url
mikkel•b202f563d ago
updated server url in cli to gitdot.io
mikkel•b80d14c6d ago
updated api endpoint to point to prod
mikkel•3605d737d ago
stored oauth token and re-enabled git auth
mikkel•ac5c6b67d ago
wired up auth login
mikkel•db510087d ago