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 55e9de41..2459ff58 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/manga/controller/SourceController.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/manga/controller/SourceController.kt @@ -169,6 +169,8 @@ object SourceController { summary("Source filters set") description("Change filters of source with id `sourceId`") } + body() + body>() }, behaviorOf = { ctx, sourceId -> val filterChange = try { @@ -212,9 +214,10 @@ object SourceController { summary("Source manga quick search") description("Returns list of manga from source matching posted searchTerm and filter") } + body() }, behaviorOf = { ctx, sourceId, pageNum -> - var filter = json.decodeFromString(ctx.body()) + val filter = json.decodeFromString(ctx.body()) ctx.future(future { Search.sourceFilter(sourceId, pageNum, filter) }) }, withResults = {