axum-folder-router/examples/advanced/api/files/[...path]/route.rs

5 lines
163 B
Rust

use axum::{extract::Path, response::IntoResponse};
pub async fn get(Path(path): Path<String>) -> impl IntoResponse {
format!("Requested file path: {path}")
}