mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2024-12-25 00:01:49 +01:00
use the correct endpoint
This commit is contained in:
parent
f502884fdd
commit
b0e90c2f63
@ -327,27 +327,25 @@ object JavalinSetup {
|
|||||||
|
|
||||||
// expects a Tachiyomi legacy backup file to be uploaded
|
// expects a Tachiyomi legacy backup file to be uploaded
|
||||||
app.get("/api/v1/backup/legacy/import") { ctx ->
|
app.get("/api/v1/backup/legacy/import") { ctx ->
|
||||||
|
// TODO
|
||||||
ctx.contentType("application/json")
|
|
||||||
ctx.result(
|
|
||||||
future {
|
|
||||||
createBackup(
|
|
||||||
BackupFlags(
|
|
||||||
includeManga = true,
|
|
||||||
includeCategories = true,
|
|
||||||
includeChapters = true,
|
|
||||||
includeTracking = true,
|
|
||||||
includeHistory = true,
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// returns a Tachiyomi legacy backup file created from the current database
|
// returns a Tachiyomi legacy backup file created from the current database
|
||||||
app.get("/api/v1/backup/legacy/export") { ctx ->
|
app.get("/api/v1/backup/legacy/export") { ctx ->
|
||||||
val categoryId = ctx.pathParam("categoryId").toInt()
|
ctx.contentType("application/json")
|
||||||
ctx.json(getCategoryMangaList(categoryId))
|
ctx.result(
|
||||||
|
future {
|
||||||
|
createBackup(
|
||||||
|
BackupFlags(
|
||||||
|
includeManga = true,
|
||||||
|
includeCategories = true,
|
||||||
|
includeChapters = true,
|
||||||
|
includeTracking = true,
|
||||||
|
includeHistory = true,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user