Skip to content

Commit 60bf86d

Browse files
committed
sentry - routes - analytics:
- add analytics router - routers - move analytics test to the analytics route and fix them - routers - add the analytics router
1 parent 1b05599 commit 60bf86d

File tree

3 files changed

+1317
-1274
lines changed

3 files changed

+1317
-1274
lines changed

sentry/src/application.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ use crate::{
3737
routes::{
3838
get_cfg, get_cfg_axum,
3939
routers::{
40-
analytics_router, campaigns_router, campaigns_router_axum, channels_router,
41-
channels_router_axum,
40+
analytics_router, analytics_router_axum, campaigns_router, campaigns_router_axum,
41+
channels_router, channels_router_axum,
4242
},
4343
},
4444
};
@@ -187,13 +187,10 @@ where
187187
// "*"
188188
.allow_origin(tower_http::cors::Any);
189189

190-
let channels = channels_router_axum::<C>();
191-
192-
let campaigns = campaigns_router_axum::<C>();
193-
194190
let router = Router::new()
195-
.nest("/channel", channels)
196-
.nest("/campaign", campaigns);
191+
.nest("/channel", channels_router_axum::<C>())
192+
.nest("/campaign", campaigns_router_axum::<C>())
193+
.nest("/analytics", analytics_router_axum::<C>());
197194

198195
Router::new()
199196
.nest("/v5", router)

0 commit comments

Comments
 (0)