This commit is contained in:
oleg.vodyanov91@gmail.com 2025-04-23 10:49:25 +04:00
parent 37ab5965ed
commit 1b57db3fb1

View File

@ -3,9 +3,10 @@ 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 => {