-
This can achieve my goal, but it will result in all interfaces carrying this header Methods like
are not feasible |
Beta Was this translation helpful? Give feedback.
Answered by
robjtede
Jan 24, 2024
Replies: 1 comment 1 reply
-
Here's what I'd recommend: .service(
actix_web::web::scope("/images")
.default_service(
actix_files::Files::new("", &CONFIG.images.dir).use_last_modified(true),
)
.wrap(DefaultHeaders::new()...),
) It does feel natural to want to wrap the files service like this though, I should have a think about making it easier. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
robjtede
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's what I'd recommend:
It does feel natural to want to wrap the files service like this though, I should have a think about making it easier.