mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 11:24:35 -05:00
Fix documentation errors (#358)
This commit is contained in:
@@ -135,8 +135,6 @@ object BackupController {
|
|||||||
summary("Validate a backup")
|
summary("Validate a backup")
|
||||||
description("Reports missing sources and trackers, expects a Tachiyomi protobuf backup in the body")
|
description("Reports missing sources and trackers, expects a Tachiyomi protobuf backup in the body")
|
||||||
}
|
}
|
||||||
body<ByteArray>("") {
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
behaviorOf = { ctx ->
|
behaviorOf = { ctx ->
|
||||||
ctx.future(
|
ctx.future(
|
||||||
|
|||||||
@@ -19,12 +19,12 @@ import suwayomi.tachidesk.manga.impl.Search.FilterChange
|
|||||||
import suwayomi.tachidesk.manga.impl.Source
|
import suwayomi.tachidesk.manga.impl.Source
|
||||||
import suwayomi.tachidesk.manga.impl.Source.SourcePreferenceChange
|
import suwayomi.tachidesk.manga.impl.Source.SourcePreferenceChange
|
||||||
import suwayomi.tachidesk.manga.model.dataclass.PagedMangaListDataClass
|
import suwayomi.tachidesk.manga.model.dataclass.PagedMangaListDataClass
|
||||||
|
import suwayomi.tachidesk.manga.model.dataclass.SourceDataClass
|
||||||
import suwayomi.tachidesk.server.JavalinSetup.future
|
import suwayomi.tachidesk.server.JavalinSetup.future
|
||||||
import suwayomi.tachidesk.server.util.handler
|
import suwayomi.tachidesk.server.util.handler
|
||||||
import suwayomi.tachidesk.server.util.pathParam
|
import suwayomi.tachidesk.server.util.pathParam
|
||||||
import suwayomi.tachidesk.server.util.queryParam
|
import suwayomi.tachidesk.server.util.queryParam
|
||||||
import suwayomi.tachidesk.server.util.withOperation
|
import suwayomi.tachidesk.server.util.withOperation
|
||||||
import javax.sound.sampled.SourceDataLine
|
|
||||||
|
|
||||||
object SourceController {
|
object SourceController {
|
||||||
/** list of sources */
|
/** list of sources */
|
||||||
@@ -39,7 +39,7 @@ object SourceController {
|
|||||||
ctx.json(Source.getSourceList())
|
ctx.json(Source.getSourceList())
|
||||||
},
|
},
|
||||||
withResults = {
|
withResults = {
|
||||||
json<List<SourceDataLine>>(HttpCode.OK)
|
json<List<SourceDataClass>>(HttpCode.OK)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ object SourceController {
|
|||||||
ctx.json(Source.getSource(sourceId)!!)
|
ctx.json(Source.getSource(sourceId)!!)
|
||||||
},
|
},
|
||||||
withResults = {
|
withResults = {
|
||||||
json<SourceDataLine>(HttpCode.OK)
|
json<SourceDataClass>(HttpCode.OK)
|
||||||
httpCode(HttpCode.NOT_FOUND)
|
httpCode(HttpCode.NOT_FOUND)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user