-
For example I have a server that serves different types of images, I would like to have different routes for different kinds of file formats: #[get("/<app>/<filename>.png?<params>")]
fn serve_png(app: &str, filename: &str, params: Any) // serves png files
#[get("/<app>/<filename>.jpeg?<params>")
fn serve_jpeg(app: &str, filename: &str, params: Any) // serves jpeg files |
Beta Was this translation helpful? Give feedback.
Answered by
Leonezz
Jan 3, 2025
Replies: 1 comment 1 reply
-
I think I found the answer |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Leonezz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think I found the answer
#339