Add paginate
This commit is contained in:
parent
374d318dea
commit
3454fb503d
4 changed files with 99 additions and 14 deletions
|
|
@ -36,7 +36,7 @@ pub async fn index(
|
|||
.context(UserSnafu)?;
|
||||
|
||||
let books = BookOperator::new(state.clone())
|
||||
.list(None)
|
||||
.list()
|
||||
.await
|
||||
.context(BookSnafu)?;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue