From 9d8b8725628b69cfb0a3ce746338a9a9528aad17 Mon Sep 17 00:00:00 2001 From: Syer10 Date: Thu, 19 May 2022 17:04:39 -0400 Subject: [PATCH] Fix documentation errors --- .../suwayomi/tachidesk/manga/controller/BackupController.kt | 2 -- .../suwayomi/tachidesk/manga/controller/SourceController.kt | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/server/src/main/kotlin/suwayomi/tachidesk/manga/controller/BackupController.kt b/server/src/main/kotlin/suwayomi/tachidesk/manga/controller/BackupController.kt index 5c8a3d0b6..52e7981d8 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/manga/controller/BackupController.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/manga/controller/BackupController.kt @@ -135,8 +135,6 @@ object BackupController { summary("Validate a backup") description("Reports missing sources and trackers, expects a Tachiyomi protobuf backup in the body") } - body("") { - } }, behaviorOf = { ctx -> ctx.future( diff --git a/server/src/main/kotlin/suwayomi/tachidesk/manga/controller/SourceController.kt b/server/src/main/kotlin/suwayomi/tachidesk/manga/controller/SourceController.kt index 77d7a5fe2..2a5ea2f0d 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/manga/controller/SourceController.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/manga/controller/SourceController.kt @@ -19,12 +19,12 @@ import suwayomi.tachidesk.manga.impl.Search.FilterChange import suwayomi.tachidesk.manga.impl.Source import suwayomi.tachidesk.manga.impl.Source.SourcePreferenceChange import suwayomi.tachidesk.manga.model.dataclass.PagedMangaListDataClass +import suwayomi.tachidesk.manga.model.dataclass.SourceDataClass import suwayomi.tachidesk.server.JavalinSetup.future import suwayomi.tachidesk.server.util.handler import suwayomi.tachidesk.server.util.pathParam import suwayomi.tachidesk.server.util.queryParam import suwayomi.tachidesk.server.util.withOperation -import javax.sound.sampled.SourceDataLine object SourceController { /** list of sources */ @@ -39,7 +39,7 @@ object SourceController { ctx.json(Source.getSourceList()) }, withResults = { - json>(HttpCode.OK) + json>(HttpCode.OK) } ) @@ -56,7 +56,7 @@ object SourceController { ctx.json(Source.getSource(sourceId)!!) }, withResults = { - json(HttpCode.OK) + json(HttpCode.OK) httpCode(HttpCode.NOT_FOUND) } )