diff --git a/validator_client/src/http_api/mod.rs b/validator_client/src/http_api/mod.rs index 2999993807c..77f1aff55b7 100644 --- a/validator_client/src/http_api/mod.rs +++ b/validator_client/src/http_api/mod.rs @@ -1091,7 +1091,6 @@ pub fn serve( .or(get_fee_recipient) .or(get_gas_limit) .or(get_std_keystores) - .or(get_log_events.boxed()) .or(get_std_remotekeys), ) .or(warp::post().and( @@ -1113,8 +1112,8 @@ pub fn serve( .or(delete_std_remotekeys), )), ) - // The auth route is the only route that is allowed to be accessed without the API token. - .or(warp::get().and(get_auth)) + // The auth route and logs are the only routes that are allowed to be accessed without the API token. + .or(warp::get().and(get_auth.or(get_log_events.boxed()))) // Maps errors into HTTP responses. .recover(warp_utils::reject::handle_rejection) // Add a `Server` header. @@ -1175,4 +1174,4 @@ where response }) -} +} \ No newline at end of file