use the correct endpoint

This commit is contained in:
Aria Moradi 2021-04-02 18:05:42 +04:30
parent f502884fdd
commit b0e90c2f63

View File

@ -327,7 +327,11 @@ 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
}
// returns a Tachiyomi legacy backup file created from the current database
app.get("/api/v1/backup/legacy/export") { ctx ->
ctx.contentType("application/json") ctx.contentType("application/json")
ctx.result( ctx.result(
future { future {
@ -343,11 +347,5 @@ object JavalinSetup {
} }
) )
} }
// returns a Tachiyomi legacy backup file created from the current database
app.get("/api/v1/backup/legacy/export") { ctx ->
val categoryId = ctx.pathParam("categoryId").toInt()
ctx.json(getCategoryMangaList(categoryId))
}
} }
} }