mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2026-01-31 16:04:15 +01:00
Add request body to documentation (#435)
This commit is contained in:
@@ -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 {
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user