mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 07:57:04 +03:00
Compare commits
2 Commits
dff6808e94
...
b3b4f72193
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3b4f72193 | ||
|
|
37ab5965ed |
@ -3,10 +3,9 @@ const addLinkBtn = document.getElementById('addLinkBtn');
|
||||
const newLinksContainer = document.getElementById('newLinksContainer');
|
||||
const watchedLinksContainer = document.getElementById('watchedLinksContainer');
|
||||
|
||||
function loadLinks() {
|
||||
const PER_PAGE = 8;
|
||||
let currentPage = 1;
|
||||
|
||||
function loadLinks() {
|
||||
fetch(`/api/links/?page=${currentPage}&per_page=${PER_PAGE}`)
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user