From 473be615626ecff0414741c6de67dd76cf499a84 Mon Sep 17 00:00:00 2001 From: hugocasa Date: Fri, 28 Aug 2026 18:50:19 +0200 Subject: [PATCH] chore: drop the route types the cors restructure replaced --- backend/windmill-api/src/triggers/http/handler.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/backend/windmill-api/src/triggers/http/handler.rs b/backend/windmill-api/src/triggers/http/handler.rs index a33094c90e..e9b729b901 100644 --- a/backend/windmill-api/src/triggers/http/handler.rs +++ b/backend/windmill-api/src/triggers/http/handler.rs @@ -39,12 +39,6 @@ use { windmill_object_store::build_object_store_client, }; -/// The route a CORS decision is about, resolved before the request is consumed. -struct CorsRoute { - allowed_origins: Option>, - http_method: HttpMethod, -} - /// Which router a request's CORS decision must be looked up in. /// /// A preflight names the method it is asking about in @@ -92,14 +86,6 @@ fn cors_lookup_path(raw_path: &str) -> Option { Some(format!("/{}", stripped.trim_end_matches('/'))) } -enum CorsRouteLookup { - /// The routers were readable: `Some` when a trigger matched the request. - Resolved(Option), - /// The routers could not be loaded, so whether this path is restricted is - /// unknown. - Unavailable, -} - /// What the middleware should stamp, decided while the routers guard is held. /// /// Deliberately small and owned: the allowlist itself never leaves the guard,