diff --git a/backend/src/main.rs b/backend/src/main.rs index 5acb282..40fd0b0 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -68,7 +68,7 @@ async fn main() { let app = Router::new() .route("/api/posts", get(list_posts)) - .route("/api/posts/:slug", get(get_post)) + .route("/api/posts/{slug}", get(get_post)) .route("/api/upload", post(upload_file)) .nest_service("/uploads", ServeDir::new(uploads_dir)) .layer(DefaultBodyLimit::max(10 * 1024 * 1024)) // 10MB limit