Begin adding pagination for feeds
This commit is contained in:
@@ -6,5 +6,5 @@ use crate::models::feed::Feed;
|
||||
|
||||
pub async fn get(State(pool): State<PgPool>) -> Result<Json<Vec<Feed>>, Error> {
|
||||
// TODO: pagination
|
||||
Ok(Json(Feed::get_all(&pool).await?))
|
||||
Ok(Json(Feed::get_all(&pool, Default::default()).await?))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user