Skip to content

Commit 587d0a1

Browse files
committed
chore: export
1 parent 824a0c5 commit 587d0a1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/cubejs-backend-native/src/gateway/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ pub use auth_service::{
1111
GatewayAuthContext, GatewayAuthContextRef, GatewayAuthService, GatewayAuthenticateResponse,
1212
GatewayCheckAuthRequest,
1313
};
14-
pub use router::ApiGatewayRouterBuilder;
14+
pub use router::{ApiGatewayRouterBuilder, RApiGatewayRouter};
1515
pub use server::{ApiGatewayServer, ApiGatewayServerImpl};
16-
pub use state::ApiGatewayState;
16+
pub use state::{ApiGatewayState, ApiGatewayStateRef};

packages/cubejs-backend-native/src/gateway/router.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ use crate::gateway::state::ApiGatewayStateRef;
44
use axum::routing::{get, MethodRouter};
55
use axum::Router;
66

7+
pub type RApiGatewayRouter = Router<ApiGatewayStateRef>;
8+
79
#[derive(Debug, Clone)]
810
pub struct ApiGatewayRouterBuilder {
9-
router: Router<ApiGatewayStateRef>,
11+
router: RApiGatewayRouter,
1012
}
1113

1214
impl ApiGatewayRouterBuilder {
@@ -29,7 +31,7 @@ impl ApiGatewayRouterBuilder {
2931
}
3032
}
3133

32-
pub fn build(self) -> Router<ApiGatewayStateRef> {
34+
pub fn build(self) -> RApiGatewayRouter {
3335
self.router
3436
}
3537
}

0 commit comments

Comments
 (0)