add paginate

This commit is contained in:
2025-03-05 20:50:21 +08:00
parent 75229ae8bf
commit ece9b4059e
3 changed files with 27 additions and 2 deletions

View File

@@ -163,3 +163,7 @@ else:
CORS_ALLOWED_ORIGINS = ["https://web.xuyue.cc"]
CORS_ALLOW_CREDENTIALS = True
NINJA_PAGINATION_CLASS = "ninja.pagination.PageNumberPagination"
NINJA_PAGINATION_PER_PAGE = 20