Skip to content

Commit

Permalink
rename graphiql to explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Nov 27, 2024
1 parent 7709555 commit c45be3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kitsune/src/http/graphql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub async fn graphql(
}

#[allow(clippy::unused_async)]
pub async fn graphiql() -> Html<String> {
pub async fn explorer() -> Html<String> {

Check warning on line 47 in kitsune/src/http/graphql/mod.rs

View check run for this annotation

Codecov / codecov/patch

kitsune/src/http/graphql/mod.rs#L47

Added line #L47 was not covered by tests
let source = GraphiQLSource::build()
.endpoint("/graphql")
.title(concat!(env!("CARGO_PKG_NAME"), " - GraphiQL"))
Expand Down
2 changes: 1 addition & 1 deletion kitsune/src/http/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub fn create(state: Zustand, server_config: &server::Configuration) -> eyre::Re
router.merge(
Router::new()
.route("/graphql", routing::any(graphql::graphql))
.route("/graphiql", routing::get(graphql::graphiql))
.route("/graphql-explorer", routing::get(graphql::explorer))

Check warning on line 93 in kitsune/src/http/router.rs

View check run for this annotation

Codecov / codecov/patch

kitsune/src/http/router.rs#L93

Added line #L93 was not covered by tests
.layer(Extension(graphql::schema(state.clone()))),
)
};
Expand Down

0 comments on commit c45be3f

Please sign in to comment.