Alexandre Brown
@Location
dependencies { implementation("io.ktor:ktor-locations:$ktorVersion") } tasks.withType<KotlinCompile> { kotlinOptions.freeCompilerArgs += listOf("-Xuse-experimental=io.ktor.locations.KtorExperimentalLocationsAPI") }
import io.ktor.locations.Location @Location("/mylocation") class MyLocation
fun Application.someFun() { routing { route("/my-root") { post<MyLocation> {
Łukasz Bednarczyk
import <http://io.ktor.routing.post|io.ktor.routing.post>
import <http://io.ktor.locations.post|io.ktor.locations.post>
A modern programming language that makes developers happier.