mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 11:24:35 -05:00
add support for installing external APK
This commit is contained in:
@@ -33,6 +33,19 @@ object ExtensionController {
|
||||
)
|
||||
}
|
||||
|
||||
/** install the uploaded apk file */
|
||||
fun installFile(ctx: Context) {
|
||||
|
||||
val uploadedFile = ctx.uploadedFile("file")!!
|
||||
println(uploadedFile.filename)
|
||||
|
||||
ctx.json(
|
||||
future {
|
||||
Extension.installExternalExtension(uploadedFile.content)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
/** update extension identified with "pkgName" */
|
||||
fun update(ctx: Context) {
|
||||
val pkgName = ctx.pathParam("pkgName")
|
||||
|
||||
Reference in New Issue
Block a user