mirror of https://github.com/encounter/objdiff.git
Use actual decomp.me host
This commit is contained in:
parent
49ee9b44aa
commit
c39795ae2c
|
@ -67,8 +67,7 @@ struct CreateScratchResponse {
|
||||||
pub claim_token: String,
|
pub claim_token: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
const API_HOST: &str = "http://127.0.0.1:8000";
|
const API_HOST: &str = "https://decomp.me";
|
||||||
const WEB_HOST: &str = "http://localhost:8080";
|
|
||||||
|
|
||||||
fn run_create_scratch(
|
fn run_create_scratch(
|
||||||
status: &JobContext,
|
status: &JobContext,
|
||||||
|
@ -121,7 +120,7 @@ fn run_create_scratch(
|
||||||
return Err(anyhow!("Failed to create scratch: {}", response.text()?));
|
return Err(anyhow!("Failed to create scratch: {}", response.text()?));
|
||||||
}
|
}
|
||||||
let body: CreateScratchResponse = response.json().context("Failed to parse response")?;
|
let body: CreateScratchResponse = response.json().context("Failed to parse response")?;
|
||||||
let scratch_url = format!("{WEB_HOST}/scratch/{}/claim?token={}", body.slug, body.claim_token);
|
let scratch_url = format!("{API_HOST}/scratch/{}/claim?token={}", body.slug, body.claim_token);
|
||||||
|
|
||||||
update_status(status, "Complete".to_string(), 2, 2, &cancel)?;
|
update_status(status, "Complete".to_string(), 2, 2, &cancel)?;
|
||||||
Ok(Box::from(CreateScratchResult { scratch_url }))
|
Ok(Box::from(CreateScratchResult { scratch_url }))
|
||||||
|
|
Loading…
Reference in New Issue