You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use hyper::{Body,Method,Request,Response,StatusCode};
13
14
use lazy_static::lazy_static;
14
15
use primitives::adapter::Adapter;
@@ -20,12 +21,10 @@ use routes::cfg::config;
20
21
use routes::channel::{channel_list, create_channel, last_approved};
21
22
use slog::{error,Logger};
22
23
use std::collections::HashMap;
23
-
24
24
pubmod middleware {
25
25
pubmod auth;
26
26
pubmod channel;
27
27
pubmod cors;
28
-
pubmod event_aggregate;
29
28
}
30
29
31
30
pubmod routes {
@@ -48,28 +47,23 @@ lazy_static! {
48
47
static ref CHANNEL_STATUS_BY_CHANNEL_ID:Regex = Regex::new(r"^/channel/0x([a-zA-Z0-9]{64})/status/?$").expect("The regex should be valid");
49
48
// Only the initial Regex to be matched.
50
49
static ref CHANNEL_VALIDATOR_MESSAGES:Regex = Regex::new(r"^/channel/0x([a-zA-Z0-9]{64})/validator-messages(/.*)?$").expect("The regex should be valid");
51
-
static ref CHANNEL_EVENTS_AGGREGATES:Regex = Regex::new(r"^/channel/0x([a-zA-Z0-9]{64})/events-aggregates(/|/0x[a-zA-Z0-9]{40}/?)?$").expect("The regex should be valid");
52
-
// @TODO define other regex routes
50
+
static ref CHANNEL_EVENTS_AGGREGATES:Regex = Regex::new(r"^/channel/0x([a-zA-Z0-9]{64})/events-aggregates/?$").expect("The regex should be valid");
53
51
static ref ANALYTICS_BY_CHANNEL_ID:Regex = Regex::new(r"^/analytics/0x([a-zA-Z0-9]{64})/?$").expect("The regex should be valid");
54
52
static ref ADVERTISER_ANALYTICS_BY_CHANNEL_ID:Regex = Regex::new(r"^/analytics/for-advertiser/0x([a-zA-Z0-9]{64})/?$").expect("The regex should be valid");
0 commit comments