change directory paths
Some checks failed
test / cargo test (push) Failing after 1m40s

This commit is contained in:
2024-09-30 21:29:25 +02:00
parent 1ce8ccfdd5
commit da78b80587
9 changed files with 13 additions and 23 deletions

View File

@ -8,7 +8,6 @@ use super::post_parser::{parse_post, ParseResult};
pub async fn get_post_list<'de, Metadata: DeserializeOwned>(
path: &str,
) -> Result<Vec<ParseResult<Metadata>>, StatusCode> {
// let path = "../_posts/blog/";
let mut dir = read_dir(path)
.await
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;