Merge branch '2-refactor-core-files' into 3-otel

This commit is contained in:
izzy
2026-01-25 19:49:08 +00:00
10 changed files with 81 additions and 170 deletions

View File

@@ -33,6 +33,12 @@ pub async fn router() -> Router<AppState> {
let cors = CorsLayer::new()
.allow_methods([Method::POST])
.allow_headers(AllowHeaders::mirror_request())
.expose_headers(vec![
"X-RateLimit-Limit".try_into().unwrap(),
"X-RateLimit-Bucket".try_into().unwrap(),
"X-RateLimit-Remaining".try_into().unwrap(),
"X-RateLimit-Reset-After".try_into().unwrap(),
])
.allow_origin(Any);
Router::new()