Skip to content

Remove the private API for the hosted explorer #5978

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 13, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
server/index-node: Remove private explorer API
  • Loading branch information
lutter committed May 13, 2025
commit ab64dc6f1de323796287dc52711350ba4b872416
218 changes: 0 additions & 218 deletions server/index-node/src/explorer.rs

This file was deleted.

1 change: 0 additions & 1 deletion server/index-node/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
mod auth;
mod explorer;
mod resolver;
mod schema;
mod server;
Expand Down
7 changes: 0 additions & 7 deletions server/index-node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use graph_graphql::prelude::{execute_query, Query as PreparedQuery, QueryExecuti

use crate::auth::bearer_token;

use crate::explorer::Explorer;
use crate::resolver::IndexNodeResolver;
use crate::schema::SCHEMA;

Expand All @@ -43,7 +42,6 @@ pub struct IndexNodeService<S> {
logger: Logger,
blockchain_map: Arc<BlockchainMap>,
store: Arc<S>,
explorer: Arc<Explorer<S>>,
link_resolver: Arc<dyn LinkResolver>,
}

Expand All @@ -57,13 +55,10 @@ where
store: Arc<S>,
link_resolver: Arc<dyn LinkResolver>,
) -> Self {
let explorer = Arc::new(Explorer::new(store.clone()));

IndexNodeService {
logger,
blockchain_map,
store,
explorer,
link_resolver,
}
}
Expand Down Expand Up @@ -229,8 +224,6 @@ where
}
(Method::OPTIONS, ["graphql"]) => Ok(Self::handle_graphql_options(req)),

(Method::GET, ["explorer", rest @ ..]) => self.explorer.handle(&self.logger, rest),

_ => Ok(Self::handle_not_found()),
}
}
Expand Down