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