From 54ee98e6985b6e36f321248b3ec9774a51fe6f55 Mon Sep 17 00:00:00 2001 From: Face <69168154+face-hh@users.noreply.github.com> Date: Fri, 5 Sep 2025 17:26:25 +0300 Subject: [PATCH] fix bug --- dns/src/gurt_server.rs | 1 + dns/src/gurt_server/routes.rs | 2 ++ 2 files changed, 3 insertions(+) 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('?') {