Compare commits

..

2 Commits

Author SHA1 Message Date
Олег Водянов
dff6808e94
Merge pull request #17 from olegvodyanov/add_pagination
All checks were successful
continuous-integration/drone/push Build is passing
fix
2025-04-23 10:45:52 +04:00
oleg.vodyanov91@gmail.com
9303b3a6e6 fix 2025-04-23 10:45:23 +04:00

View File

@ -7,7 +7,7 @@ const PER_PAGE = 8;
let currentPage = 1; let currentPage = 1;
function loadLinks() { function loadLinks() {
fetch('/api/links/?page=${currentPage}&per_page=${PER_PAGE}') fetch(`/api/links/?page=${currentPage}&per_page=${PER_PAGE}`)
.then(res => res.json()) .then(res => res.json())
.then(data => { .then(data => {
linksData = data.results; linksData = data.results;