diff --git a/app/src/api/cmd.ts b/app/src/api/cmd.ts index d3989958..0064717e 100644 --- a/app/src/api/cmd.ts +++ b/app/src/api/cmd.ts @@ -11,8 +11,8 @@ if (IS_DEV) { const mode = import.meta.env.MODE; if (mode === "super") { - // root = "https://app.superadmin.sphinx.chat/api"; - root = "http://localhost:8005/api"; + root = "https://app.superadmin.sphinx.chat/api"; + // root = "http://localhost:8005/api"; } type CmdType = diff --git a/src/bin/super/cmd.rs b/src/bin/super/cmd.rs index 767f9c4b..8780daf9 100644 --- a/src/bin/super/cmd.rs +++ b/src/bin/super/cmd.rs @@ -1,6 +1,5 @@ use serde::{Deserialize, Serialize}; use serde_json::Value; -use sphinx_swarm::cmd::ChangeUserPasswordBySuperAdminInfo; #[derive(Serialize, Deserialize, Debug, Clone)] #[serde(tag = "type", content = "data")] diff --git a/src/bin/super/util.rs b/src/bin/super/util.rs index 7debb924..a12b4e75 100644 --- a/src/bin/super/util.rs +++ b/src/bin/super/util.rs @@ -24,9 +24,9 @@ use sphinx_swarm::utils::{getenv, make_reqwest_client}; use crate::aws_util::make_aws_client; use crate::cmd::{ - AccessNodesInfo, AddSwarmResponse, ChangeSwarmChildPasswordData, ChangeSwarmChildPasswordInfo, - ChangeUserPasswordBySuperAdminRequest, CreateEc2InstanceInfo, GetInstanceTypeByInstanceId, - GetInstanceTypeRes, LoginResponse, SuperSwarmResponse, UpdateInstanceDetails, + AccessNodesInfo, AddSwarmResponse, ChangeUserPasswordBySuperAdminRequest, + CreateEc2InstanceInfo, GetInstanceTypeByInstanceId, GetInstanceTypeRes, LoginResponse, + SuperSwarmResponse, UpdateInstanceDetails, }; use crate::ec2::get_swarms_by_tag; use crate::route53::add_domain_name_to_route53; @@ -175,9 +175,9 @@ pub fn get_child_base_route(host: String) -> Result { return Err(anyhow!("child swarm default host not provided")); }; - // return Ok(format!("https://app.{}/api", host)); + return Ok(format!("https://app.{}/api", host)); - return Ok(format!("http://{}/api", host)); + // return Ok(format!("http://{}/api", host)); } pub async fn get_child_swarm_containers(