diff --git a/src/main.rs b/src/main.rs index 6ea5cdf..3a3f748 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,6 +36,18 @@ fn get_dokku_root() -> Option { } async fn hosts(State(state): State) -> String { + for vhost in state + .dokku_root + .read_dir() + .unwrap() + .filter_map(Result::ok) + .map(|entry| entry.path()) + .filter(|path| path.is_dir()) + .map(|path| path.join("VHOST")) + .filter(|path| path.is_file()) + { + dbg!(vhost); + } format!("{}", state.dokku_root.display()) }