Repository navigation
This can achieve my goal, but it will result in all interfaces carrying this header Methods like are not feasible |
Answered by
robjtede
Jan 24, 2024
Replies: 2 comments 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. |
1 reply
Answer selected by
robjtede
This comment was marked as spam.
This comment was marked as spam.
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.