add paginate

This commit is contained in:
xuyue committed 2025-03-05 20:50:21 +08:00
1 parent 75229ae8bf
commit ece9b4059e
3 files changed
+27 -2

No files matched your search

+4
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