validation: explicitly append url (TODO: update deployment env var)

This commit is contained in:
Quaternions 2025-03-18 13:23:48 -07:00
parent e1645e7c46
commit ecb88c14a4
2 changed files with 3 additions and 3 deletions
validation

@ -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:{

@ -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