This commit is contained in:
Piyush मिश्रः 2021-06-27 23:52:44 +05:30
parent 821b28b7f7
commit fcf2a49fef
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ async fn main() -> tide::Result<()> {
if let Some(val) = conf.static_dirs {
let path = Path::new(&val);
if path.exists() && path.is_dir() {
app.at("/").serve_dir(path.to_str().unwrap())?;
app.at("").serve_dir(path.to_str().unwrap())?;
} else { warn!("Static Directory dosen't exists!") }
let path = path.join("index.html");