diff options
author | Alex Auvolat <lx@deuxfleurs.fr> | 2025-01-31 18:42:14 +0100 |
---|---|---|
committer | Alex Auvolat <lx@deuxfleurs.fr> | 2025-01-31 18:42:14 +0100 |
commit | afa28706e5566737376f8448bcc548f780f0f57f (patch) | |
tree | ca0b8285cc825fcef4ba6a1b722a204f71d79782 /src/web | |
parent | 84f1db91c4e53a8d0c037fd01adb695fd9400ed5 (diff) | |
download | garage-afa28706e5566737376f8448bcc548f780f0f57f.tar.gz garage-afa28706e5566737376f8448bcc548f780f0f57f.zip |
split s3/cors.rs into also common/cors.rs
Diffstat (limited to 'src/web')
-rw-r--r-- | src/web/web_server.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/web_server.rs b/src/web/web_server.rs index 52de7024..48dcb5b1 100644 --- a/src/web/web_server.rs +++ b/src/web/web_server.rs @@ -20,9 +20,11 @@ use opentelemetry::{ use crate::error::*; +use garage_api_common::cors::{ + add_cors_headers, find_matching_cors_rule, handle_options_for_bucket, +}; use garage_api_common::generic_server::{server_loop, UnixListenerOn}; use garage_api_common::helpers::*; -use garage_api_s3::cors::{add_cors_headers, find_matching_cors_rule, handle_options_for_bucket}; use garage_api_s3::error::{ CommonErrorDerivative, Error as ApiError, OkOrBadRequest, OkOrInternalError, }; |