diff --git a/dns/src/gurt_server.rs b/dns/src/gurt_server.rs index cba4b60..ca53b26 100644 --- a/dns/src/gurt_server.rs +++ b/dns/src/gurt_server.rs @@ -240,6 +240,7 @@ pub async fn start(cli: crate::Cli) -> std::io::Result<()> { .route(Route::post("/auth/create-domain-invite"), AppHandler { app_state: app_state.clone(), rate_limit_state: None, handler_type: HandlerType::CreateDomainInvite }) .route(Route::post("/auth/redeem-domain-invite"), AppHandler { app_state: app_state.clone(), rate_limit_state: None, handler_type: HandlerType::RedeemDomainInvite }) .route(Route::get("/auth/domains"), AppHandler { app_state: app_state.clone(), rate_limit_state: None, handler_type: HandlerType::GetUserDomains }) + .route(Route::get("/auth/domains/*"), AppHandler { app_state: app_state.clone(), rate_limit_state: None, handler_type: HandlerType::GetUserDomains }) .route(Route::post("/domain"), AppHandler { app_state: app_state.clone(), rate_limit_state: Some(rate_limit_state), handler_type: HandlerType::CreateDomain }) .route(Route::get("/domain/*"), AppHandler { app_state: app_state.clone(), rate_limit_state: None, handler_type: HandlerType::GetDomain }) .route(Route::post("/domain/*"), AppHandler { app_state: app_state.clone(), rate_limit_state: None, handler_type: HandlerType::CreateDomainRecord }) diff --git a/dns/src/gurt_server/routes.rs b/dns/src/gurt_server/routes.rs index 6bc761c..7689346 100644 --- a/dns/src/gurt_server/routes.rs +++ b/dns/src/gurt_server/routes.rs @@ -353,6 +353,8 @@ pub(crate) async fn get_user_domains( app_state: AppState, claims: Claims, ) -> Result { + log::info!("get_user_domains called for user_id: {} path: {}", claims.user_id, ctx.path()); + // Parse pagination from query parameters let path = ctx.path(); let query_params = if let Some(query_start) = path.find('?') {