Skip to content

Commit ef99f1e

Browse files
authored
fix(docs): update Ktor routing example to use routing DSL instead of install(Routing) (#2161)
### 📝 Description The sample code in the Ktor overview documentation does not work: https://opensource.expediagroup.com/graphql-kotlin/docs/server/ktor-server/ktor-overview This appears to be related to missing support for Ktor v3.x.x (see #2037). I updated the sample code so that it builds successfully with the current version. ### 🔗 Related Issues - #2037
1 parent 292becd commit ef99f1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/docs/server/ktor-server/ktor-overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fun Application.graphQLModule() {
6363
)
6464
}
6565
}
66-
install(Routing) {
66+
routing {
6767
graphQLPostRoute()
6868
}
6969
install(StatusPages) {

0 commit comments

Comments
 (0)