diff --git a/backend/main.py b/backend/main.py index 1c7e134..fccc34d 100644 --- a/backend/main.py +++ b/backend/main.py @@ -1,6 +1,9 @@ +from fastapi_pagination import add_pagination + from . import create_app, models from .database import engine models.Base.metadata.create_all(engine) app = create_app() +add_pagination(app) diff --git a/backend/requirements.txt b/backend/requirements.txt index 9cc40cb..5c6696c 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -1,11 +1,10 @@ alembic fastapi -fastapi-pagination[sqlalchemy] +fastapi-pagination[sqlalchemy]<0.12 ldap3 passlib[bcrypt] psycopg2-binary -# See: https://github.com/samuelcolvin/pydantic/issues/4131 -pydantic<1.9.1 +pydantic<2 python-dotenv python-jose[cryptography] python-multipart