mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-11-02 10:03:01 +00:00
updates
This commit is contained in:
1 parent
4fd5096829
commit
56e6dfac9f
15 files changed
+136
-75
No files matched your search
@@ -1,10 +0,0 @@
|
||||
package dev.inmo.micro_utils.ktor.server
|
||||
|
||||
import dev.inmo.micro_utils.pagination.*
|
||||
import io.ktor.http.Parameters
|
||||
|
||||
val Parameters.extractPagination: Pagination
|
||||
get() = SimplePagination(
|
||||
get("page") ?.toIntOrNull() ?: 0,
|
||||
get("size") ?.toIntOrNull() ?: defaultMediumPageSize
|
||||
)
|
||||
Reference in new issue
Block a user