Files
elo/src/templates/mod.rs
Matthew Kaminski d25fb283cc
Some checks failed
Build Crate / build (push) Failing after 1m46s
Mode templates to folders
2024-08-29 16:28:05 -04:00

22 lines
438 B
Rust

pub mod pickleball;
pub mod pool;
pub mod table_tennis;
pub mod user;
#[cfg(client)]
use perseus::utils::get_path_prefix_client;
#[cfg(client)]
pub fn get_api_path(path: &str) -> String {
#[cfg(engine)]
{
path.to_string()
}
#[cfg(client)]
{
let origin = web_sys::window().unwrap().origin();
let base_path = get_path_prefix_client();
format!("{}{}{}", origin, base_path, path)
}
}