Add example pages and remove dead code
All checks were successful
Build Crate / build (push) Successful in 4m41s

This commit is contained in:
2023-09-19 03:27:31 -04:00
parent aaaaf256f4
commit 1b3a6db223
10 changed files with 207 additions and 173 deletions

View File

@@ -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;