Pagination
Pre-release
Pre-release
Implements pagination helpers using new APIs from vapor/fluent-kit#130.
struct TodoController {
func index(req: Request) throws -> EventLoopFuture<Page<Todo>> {
Todo.query(on: req.db).paginate(for: req)
}
}