accept all paths?
Some checks failed
PR Check / lint-and-format (pull_request) Failing after 9m26s

This commit is contained in:
Mylloon 2024-11-14 03:39:46 +01:00
parent e8f69a34b1
commit a3ad87dc05
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -67,7 +67,7 @@ struct BlogPostTemplate {
toc: String,
}
#[get("/blog/p/{id}")]
#[get("/blog/p/{id:.*}")]
pub async fn page(path: web::Path<(String,)>, config: web::Data<Config>) -> impl Responder {
Html(build_post(
&path.into_inner().0,