We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07cb8ec commit 66a6b79Copy full SHA for 66a6b79
src/loadStarreds.js
@@ -1,7 +1,9 @@
1
const http = require('./clientHttp')
2
3
-const params = { per_page: 100, page: 1 }
4
-
5
-const loadStarreds = username => http.get(`/users/${username}/starred`, { params });
+const loadStarreds = (username, page = 1) => {
+ const params = { per_page: 100, page }
+ const path = `/users/${username}/starred`;
6
+ return http.get(path, { params })
7
+};
8
9
module.exports = loadStarreds;
0 commit comments