Sample project for Ktor with an embedded server with multiple connector endpoints.
Execute this to run the sample:
./gradlew run
And navigate to http://localhost:8080/ (or from another computer in the same network) to see one public page. And navigate to http://localhost:9090/ to see a different private page just accessible to localhost.