Add example pages and remove dead code
All checks were successful
Build Crate / build (push) Successful in 4m41s
All checks were successful
Build Crate / build (push) Successful in 4m41s
This commit is contained in:
@@ -1,17 +1,4 @@
|
||||
use std::env;
|
||||
|
||||
pub mod index;
|
||||
pub mod long;
|
||||
|
||||
pub fn get_path(path: &str) -> String {
|
||||
// Get base path
|
||||
match env::var("PERSEUS_BASE_PATH") {
|
||||
Ok(env_path) => {
|
||||
// Strip the slash on both sides for directory consistency
|
||||
// let stripped_env = env_path.trim_start_matches("/").trim_end_matches("/");
|
||||
// format!("{stripped_env}/{path}").to_string().trim_end_matches("/").to_owned()
|
||||
path.to_owned()
|
||||
}
|
||||
Err(_) => path.to_owned(),
|
||||
}
|
||||
}
|
||||
pub mod add_game_form;
|
||||
pub mod one_v_one_board;
|
||||
pub mod overall_board;
|
||||
|
||||
Reference in New Issue
Block a user