Skip to content

Commit

Permalink
Add request body to documentation (Suwayomi#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
Syer10 authored Nov 6, 2022
1 parent c2a9820 commit 8b20e2b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ object SourceController {
summary("Source filters set")
description("Change filters of source with id `sourceId`")
}
body<FilterChange>()
body<Array<FilterChange>>()
},
behaviorOf = { ctx, sourceId ->
val filterChange = try {
Expand Down Expand Up @@ -212,9 +214,10 @@ object SourceController {
summary("Source manga quick search")
description("Returns list of manga from source matching posted searchTerm and filter")
}
body<FilterData>()
},
behaviorOf = { ctx, sourceId, pageNum ->
var filter = json.decodeFromString<FilterData>(ctx.body())
val filter = json.decodeFromString<FilterData>(ctx.body())
ctx.future(future { Search.sourceFilter(sourceId, pageNum, filter) })
},
withResults = {
Expand Down

0 comments on commit 8b20e2b

Please sign in to comment.