add TODO for changing later
This commit is contained in:
@@ -29,6 +29,7 @@ object BackupController {
|
|||||||
|
|
||||||
/** expects a Tachiyomi protobuf backup as a file upload, the file must be named "backup.proto.gz" */
|
/** expects a Tachiyomi protobuf backup as a file upload, the file must be named "backup.proto.gz" */
|
||||||
fun protobufImportFile(ctx: Context) {
|
fun protobufImportFile(ctx: Context) {
|
||||||
|
// TODO: rewrite this with ctx.uploadedFiles(), don't call the multipart field "backup.proto.gz"
|
||||||
ctx.json(
|
ctx.json(
|
||||||
JavalinSetup.future {
|
JavalinSetup.future {
|
||||||
ProtoBackupImport.performRestore(ctx.uploadedFile("backup.proto.gz")!!.content)
|
ProtoBackupImport.performRestore(ctx.uploadedFile("backup.proto.gz")!!.content)
|
||||||
|
|||||||
Reference in New Issue
Block a user