function transformPaginationParams(req) {
	const limit = parseInt(req.query[starkQueryParam.LIMIT], 10) || 10; // defaults to 10
	const offset = parseInt(req.query[starkQueryParam.OFFSET], 10) || 0; // defaults to 0
	const page = Math.floor(offset / limit) + 1;

	req.query["_limit"] = limit;
	delete req.query[starkQueryParam.LIMIT];

	req.query["_page"] = page;
	delete req.query[starkQueryParam.OFFSET];
}
/**
 * Replace Stark pagination params by JSON-server pagination params
 * @param req : The current request
 */
Replace Stark pagination params by JSON-server pagination params
@param req : The current request
Replace Stark pagination params by JSON - server pagination params @param req : The current request
function transformPaginationParams(req) {
	const limit = parseInt(req.query[starkQueryParam.LIMIT], 10) || 10; 
	const offset = parseInt(req.query[starkQueryParam.OFFSET], 10) || 0; 
	const page = Math.floor(offset / limit) + 1;
	req.query["_limit"] = limit;
	delete req.query[starkQueryParam.LIMIT];
	req.query["_page"] = page;
	delete req.query[starkQueryParam.OFFSET];
}
function transformPaginationParams ( req ) { const limit = parseInt ( req . query [ starkQueryParam . LIMIT ] , 10 ) || 10 ; const offset = parseInt ( req . query [ starkQueryParam . OFFSET ] , 10 ) || 0 ; const page = Math . floor ( offset / limit ) + 1 ; req . query [ "_limit" ] = limit ; delete req . query [ starkQueryParam . LIMIT ] ; req . query [ "_page" ] = page ; delete req . query [ starkQueryParam . OFFSET ] ; }
Replace Stark pagination params by JSON-server pagination params
 @param req : The current request
Replace Stark pagination params by JSON - server pagination params @param req : The current request
// defaults to 10 // defaults to 0