mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 01:15:12 +03:00
Cutover proposal host to the prod appengine one!
This commit is contained in:
parent
3d710afba2
commit
c716dc3b2c
@ -22,7 +22,8 @@ use crate::common::Warping;
|
||||
use crate::edit::{LoadEdits, RoadEditor, SaveEdits};
|
||||
use crate::sandbox::gameplay::GameplayMode;
|
||||
|
||||
pub const PROPOSAL_HOST_URL: &str = "http://localhost:8080/v1";
|
||||
//pub const PROPOSAL_HOST_URL: &str = "http://localhost:8080/v1";
|
||||
pub const PROPOSAL_HOST_URL: &str = "https://aorta-routes.appspot.com/v1";
|
||||
|
||||
pub struct ExploreMap {
|
||||
top_panel: Panel,
|
||||
@ -451,7 +452,10 @@ fn share_proposal(ctx: &mut EventCtx, app: &App) -> Box<dyn State<App>> {
|
||||
"Uploading proposal",
|
||||
Box::new(|ctx, _, result| {
|
||||
Transition::Replace(match result {
|
||||
Ok(uuid) => PopupMsg::new_state(ctx, "Success", vec![format!("ID is {}", uuid)]),
|
||||
Ok(uuid) => {
|
||||
info!("Proposal uploaded! {}/get?id={}", PROPOSAL_HOST_URL, uuid);
|
||||
PopupMsg::new_state(ctx, "Success", vec![format!("ID is {}", uuid)])
|
||||
}
|
||||
Err(err) => PopupMsg::new_state(
|
||||
ctx,
|
||||
"Failure",
|
||||
|
Loading…
Reference in New Issue
Block a user