From c45be3f51ce1fc4edbaa5ac3db2fa0a11561c8bf Mon Sep 17 00:00:00 2001 From: aumetra Date: Wed, 27 Nov 2024 20:58:58 +0100 Subject: [PATCH] rename graphiql to explorer --- kitsune/src/http/graphql/mod.rs | 2 +- kitsune/src/http/router.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kitsune/src/http/graphql/mod.rs b/kitsune/src/http/graphql/mod.rs index 5c901e117..88e0c1eeb 100644 --- a/kitsune/src/http/graphql/mod.rs +++ b/kitsune/src/http/graphql/mod.rs @@ -44,7 +44,7 @@ pub async fn graphql( } #[allow(clippy::unused_async)] -pub async fn graphiql() -> Html { +pub async fn explorer() -> Html { let source = GraphiQLSource::build() .endpoint("/graphql") .title(concat!(env!("CARGO_PKG_NAME"), " - GraphiQL")) diff --git a/kitsune/src/http/router.rs b/kitsune/src/http/router.rs index f7e190406..ac4dc550a 100644 --- a/kitsune/src/http/router.rs +++ b/kitsune/src/http/router.rs @@ -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)) .layer(Extension(graphql::schema(state.clone()))), ) };