Fix category reorder Endpoint. Added Test for Category Reorder (#232)

* Fix category reorder Endpoint. Added Test for Category Reorder

* Remove streams and use kotlin filtering
This commit is contained in:
Sascha Hahne
2021-10-30 13:16:22 +02:00
committed by GitHub
parent 82837e38d2
commit 0ee74943e8
2 changed files with 52 additions and 2 deletions
@@ -77,11 +77,13 @@ object MangaAPI {
get("", CategoryController::categoryList)
post("", CategoryController::categoryCreate)
// The order here is important {categoryId} needs to be applied last
// or throws a NumberFormatException
patch("reorder", CategoryController::categoryReorder)
get("{categoryId}", CategoryController::categoryMangas)
patch("{categoryId}", CategoryController::categoryModify)
delete("{categoryId}", CategoryController::categoryDelete)
patch("reorder", CategoryController::categoryReorder)
}
path("backup") {