From a3ad87dc05c68dc20de54b6fbb697ce34506ff3b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 14 Nov 2024 03:39:46 +0100 Subject: [PATCH] accept all paths? --- src/routes/blog.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/blog.rs b/src/routes/blog.rs index 5e8d3e9..6e27f65 100644 --- a/src/routes/blog.rs +++ b/src/routes/blog.rs @@ -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) -> impl Responder { Html(build_post( &path.into_inner().0,