mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-12-01 03:46:04 +00:00
ids in crud repos
This commit is contained in:
@@ -23,6 +23,11 @@ inline fun <reified ObjectType, reified IdType> Route.configureReadCRUDRepoRoute
|
||||
|
||||
call.respond(originalRepo.getByPagination(pagination))
|
||||
}
|
||||
get(getIdsByPaginationRouting) {
|
||||
val pagination = call.request.queryParameters.extractPagination
|
||||
|
||||
call.respond(originalRepo.getIdsByPagination(pagination))
|
||||
}
|
||||
|
||||
get(getByIdRouting) {
|
||||
val id = idDeserializer(
|
||||
|
||||
Reference in New Issue
Block a user