asad.awadia
01/31/2021, 10:46 PMtipsy
02/01/2021, 6:00 AMasad.awadia
02/01/2021, 9:33 PMprivate fun downloadBackup(ctx: Context) {
ctx.result(Files.readAllBytes(Path.of("/tmp/backup.zip")))
}
also this piece - is this how static files are sent as well? Just read the bytes and send it as a result? or are there optimisations that you use when sending static filestipsy
02/02/2021, 1:14 PMasad.awadia
02/02/2021, 1:34 PM