ktor-server-core / io.ktor.http.content / file

file

fun Route.file(remotePath: String, localPath: String = remotePath): Unit
fun Route.file(remotePath: String, localPath: File): Unit

Sets up routing to serve localPath file as remotePath