diff --git a/apollo-execution-ktor/src/commonMain/kotlin/com/apollographql/execution/ktor/main.kt b/apollo-execution-ktor/src/commonMain/kotlin/com/apollographql/execution/ktor/main.kt index 6ddc769..cf564c2 100644 --- a/apollo-execution-ktor/src/commonMain/kotlin/com/apollographql/execution/ktor/main.kt +++ b/apollo-execution-ktor/src/commonMain/kotlin/com/apollographql/execution/ktor/main.kt @@ -137,14 +137,11 @@ fun Application.apolloSubscriptionModule( fun Application.apolloSandboxModule( title: String = "API sandbox", - sandboxPath: String = "/sandbox", graphqlPath: String = "/graphql", + sandboxPath: String = "/", ) { routing { - get(Regex("/sandbox/?")) { - call.respondRedirect(call.url { path("/sandbox/index.html") }, permanent = true) - } - get("$sandboxPath/index.html") { + get(sandboxPath) { val initialEndpoint = call.url { /** * Trying to guess if the client connected through HTTPS