correct pagination headers
This commit is contained in:
@@ -31,9 +31,9 @@ def index():
|
||||
o=0
|
||||
articles=controller.get_all_page(pp,o)
|
||||
resp = jsonify(articles=articles)
|
||||
resp.headers['Pagination-Limit']=20
|
||||
resp.headers['Pagination-Offset']=10
|
||||
resp.headers['Pagination-TotalCount']=100
|
||||
resp.headers['Pagination-Limit']=pp
|
||||
resp.headers['Pagination-Offset']=o
|
||||
resp.headers['Pagination-TotalCount']=controller.count()
|
||||
return resp
|
||||
|
||||
@article_pages.route("/<int:id>",methods=['PUT'])
|
||||
|
||||
Reference in New Issue
Block a user