Skip to content

Commit 5870901

Browse files
Support wildcard route matching for integrations (#136)
1 parent 12d7577 commit 5870901

File tree

7 files changed

+498
-36
lines changed

7 files changed

+498
-36
lines changed

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ log = "0.4.28"
4040
log-fastly = "0.11.12"
4141
lol_html = "2.7.0"
4242
once_cell = "1.21"
43+
matchit = "0.9"
4344
pin-project-lite = "0.2"
4445
rand = "0.8"
4546
regex = "1.12.2"

crates/common/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ log = { workspace = true }
3131
rand = { workspace = true }
3232
log-fastly = { workspace = true }
3333
lol_html = { workspace = true }
34+
matchit = { workspace = true }
3435
pin-project-lite = { workspace = true }
3536
regex = { workspace = true }
3637
serde = { workspace = true }

crates/common/src/integrations/prebid.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,10 @@ pub fn register(settings: &Settings) -> Option<IntegrationRegistration> {
264264

265265
#[async_trait(?Send)]
266266
impl IntegrationProxy for PrebidIntegration {
267+
fn integration_name(&self) -> &'static str {
268+
PREBID_INTEGRATION_ID
269+
}
270+
267271
fn routes(&self) -> Vec<IntegrationEndpoint> {
268272
let mut routes = vec![
269273
IntegrationEndpoint::get(ROUTE_FIRST_PARTY_AD),

0 commit comments

Comments
 (0)