changed the route from posts to post
parent
d8a4c2b03e
commit
615ca6c300
|
@ -85,7 +85,7 @@ fn get_post(id_number: i32) -> Post {
|
|||
post.unwrap()
|
||||
}
|
||||
|
||||
#[get("/posts/<title>")]
|
||||
#[get("/post/<title>")]
|
||||
fn show_post(title: String) -> Template {
|
||||
let mut context = Context::new();
|
||||
|
||||
|
|
Loading…
Reference in New Issue