diff --git a/validation/api/src/context.rs b/validation/api/src/context.rs index 3d7e74c..3264027 100644 --- a/validation/api/src/context.rs +++ b/validation/api/src/context.rs @@ -14,8 +14,7 @@ pub struct Context{ } impl Context{ - pub fn new(mut base_url:String,cookie:Option<Cookie>)->reqwest::Result<Self>{ - base_url+="/v1"; + pub fn new(base_url:String,cookie:Option<Cookie>)->reqwest::Result<Self>{ Ok(Self{ base_url, client:{ diff --git a/validation/src/main.rs b/validation/src/main.rs index 5daeb8a..0fbb7c1 100644 --- a/validation/src/main.rs +++ b/validation/src/main.rs @@ -39,7 +39,8 @@ async fn main()->Result<(),StartupError>{ let cookie_context=rbx_asset::cookie::CookieContext::new(rbx_asset::cookie::Cookie::new(cookie)); // maps-service api - let api_host_internal=std::env::var("API_HOST_INTERNAL").expect("API_HOST_INTERNAL env required"); + let mut api_host_internal=std::env::var("API_HOST_INTERNAL").expect("API_HOST_INTERNAL env required"); + api_host_internal+="v1/"; let api=submissions_api::internal::Context::new(api_host_internal).map_err(StartupError::API)?; // nats