From 1a42ce99f0a447c3e83caf8042073e11e105b846 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Mon, 9 Jun 2025 20:11:49 -0400 Subject: Fix URLs --- crates/teleia/src/context.rs | 8 ++++---- crates/teleia/src/helpers.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/teleia/src/context.rs b/crates/teleia/src/context.rs index c633da9..56494dc 100644 --- a/crates/teleia/src/context.rs +++ b/crates/teleia/src/context.rs @@ -145,16 +145,16 @@ impl Context { #[cfg(target_arch = "wasm32")] pub fn bundt_api_server(&self) -> String { js_bundt_api_server() } #[cfg(all(not(target_arch = "wasm32"), debug_assertions))] - pub fn bundt_api_server(&self) -> String { "http://localhost:8080/api".to_owned() } + pub fn bundt_api_server(&self) -> String { "http://localhost:8000/api".to_owned() } #[cfg(all(not(target_arch = "wasm32"), not(debug_assertions)))] - pub fn bundt_api_server(&self) -> String { "http://api.colonq.computer/api".to_owned() } + pub fn bundt_api_server(&self) -> String { "https://api.colonq.computer/api".to_owned() } #[cfg(target_arch = "wasm32")] pub fn bundt_secure_api_server(&self) -> String { js_bundt_secure_api_server() } #[cfg(all(not(target_arch = "wasm32"), debug_assertions))] - pub fn bundt_secure_api_server(&self) -> String { "http://localhost:8080/api".to_owned() } + pub fn bundt_secure_api_server(&self) -> String { "http://localhost:8000/api".to_owned() } #[cfg(all(not(target_arch = "wasm32"), not(debug_assertions)))] - pub fn bundt_secure_api_server(&self) -> String { "http://secure.colonq.computer/api".to_owned() } + pub fn bundt_secure_api_server(&self) -> String { "https://secure.colonq.computer/api".to_owned() } pub fn clear_color(&self, color: glam::Vec4) { unsafe { diff --git a/crates/teleia/src/helpers.js b/crates/teleia/src/helpers.js index 881064b..fb2a1a0 100644 --- a/crates/teleia/src/helpers.js +++ b/crates/teleia/src/helpers.js @@ -13,9 +13,9 @@ export function js_poll_resized() { } export function js_bundt_api_server() { - return globalThis.apiServer || "http://localhost:8080/api"; + return globalThis.apiServer || "http://localhost:8000/api"; } export function js_bundt_secure_api_server() { - return globalThis.secureApiServer || "http://localhost:8080/api"; + return globalThis.secureApiServer || "http://localhost:8000/api"; } -- cgit v1.2.3