add TODO for changing later

This commit is contained in:
Aria Moradi
2021-09-09 05:15:08 +04:30
parent f0566d15af
commit 55ec6bcafe

View File

@@ -29,6 +29,7 @@ object BackupController {
/** expects a Tachiyomi protobuf backup as a file upload, the file must be named "backup.proto.gz" */
fun protobufImportFile(ctx: Context) {
// TODO: rewrite this with ctx.uploadedFiles(), don't call the multipart field "backup.proto.gz"
ctx.json(
JavalinSetup.future {
ProtoBackupImport.performRestore(ctx.uploadedFile("backup.proto.gz")!!.content)