We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c38647 commit 73d639aCopy full SHA for 73d639a
apollo-execution-ktor/src/commonMain/kotlin/com/apollographql/execution/ktor/main.kt
@@ -137,14 +137,11 @@ fun Application.apolloSubscriptionModule(
137
138
fun Application.apolloSandboxModule(
139
title: String = "API sandbox",
140
- sandboxPath: String = "/sandbox",
141
graphqlPath: String = "/graphql",
+ sandboxPath: String = "/",
142
) {
143
routing {
144
- get(Regex("/sandbox/?")) {
145
- call.respondRedirect(call.url { path("/sandbox/index.html") }, permanent = true)
146
- }
147
- get("$sandboxPath/index.html") {
+ get(sandboxPath) {
148
val initialEndpoint = call.url {
149
/**
150
* Trying to guess if the client connected through HTTPS
0 commit comments