split s3/cors.rs into also common/cors.rs

This commit is contained in:
Alex Auvolat
2025-01-31 18:42:14 +01:00
parent 84f1db91c4
commit afa28706e5
11 changed files with 179 additions and 186 deletions
+3 -1
View File
@@ -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,
};