Skip to content
Discussion options

You must be logged in to vote

Ok, I managed to find the solution in the documentation. I didn't saw it while reading the docs :D

// this will catch all the url parameters
#[get("/images/{tail:.*}")]
async fn show(params: web::Path<String>) -> impl Responder {
    println!("{:?}", params);
    HttpResponse::Ok().json("foo")
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by melokki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant