Skip to content

Commit 8a3342c

Browse files
committed
readme updated
1 parent 1c7de09 commit 8a3342c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@ First, you may want to take a look at the project structure and understand what
565565
│ ├── api # Folder containing API-related logic.
566566
│ │ ├── __init__.py
567567
│ │ ├── dependencies.py # Defines dependencies for use across API endpoints.
568-
│ │ ├── paginated.py # Utilities for API response pagination.
569568
│ │ │
570569
│ │ └── v1 # Version 1 of the API.
571570
│ │ ├── __init__.py
@@ -1020,10 +1019,10 @@ With the `get_multi` method we get a python `dict` with full suport for paginati
10201019
}
10211020
```
10221021

1023-
And in the endpoint, we can import from `app/api/paginated` the following functions and Pydantic Schema:
1022+
And in the endpoint, we can import from `fastcrud.paginated` the following functions and Pydantic Schema:
10241023

10251024
```python
1026-
from app.api.paginated import (
1025+
from fastcrud.paginated import (
10271026
PaginatedListResponse, # What you'll use as a response_model to validate
10281027
paginated_response, # Creates a paginated response based on the parameters
10291028
compute_offset, # Calculate the offset for pagination ((page - 1) * items_per_page)

0 commit comments

Comments
 (0)