This commit is contained in:
@@ -6,15 +6,9 @@ pub mod overall_board;
|
||||
#[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)
|
||||
}
|
||||
let origin = web_sys::window().unwrap().origin();
|
||||
let base_path = get_path_prefix_client();
|
||||
format!("{}{}{}", origin, base_path, path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user