This commit is contained in:
parent
e8f69a34b1
commit
a3ad87dc05
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ struct BlogPostTemplate {
|
||||||
toc: String,
|
toc: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[get("/blog/p/{id}")]
|
#[get("/blog/p/{id:.*}")]
|
||||||
pub async fn page(path: web::Path<(String,)>, config: web::Data<Config>) -> impl Responder {
|
pub async fn page(path: web::Path<(String,)>, config: web::Data<Config>) -> impl Responder {
|
||||||
Html(build_post(
|
Html(build_post(
|
||||||
&path.into_inner().0,
|
&path.into_inner().0,
|
||||||
|
|
Loading…
Reference in a new issue