Send file

Report a typo

Write the code that will respond with some file:

get("/download") {
    val file = File("logo.png")
    /* your code here */
}
Enter a short text
___

Create a free account to access the full topic