fixed misplaced column
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user