updated manage and index for webpage

This commit is contained in:
masterElmar
2024-07-23 19:58:15 +02:00
parent c2c1b17d2d
commit 8c2f794aae
2 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@
// fetch mediaData from http://127.0.0.1:8090/api/collections/media/records/ with GET method
function fetchMediaData() {
fetch("/api/collections/media/records/", {
fetch("/api/collections/media/records/?perPage=3000", {
method: "GET",
headers: {
"Content-Type": "application/json",

4
pb_public/index.html Normal file → Executable file
View File

@ -48,7 +48,7 @@
const sliderArrayQuery = [];
const pb = new PocketBase('http://127.0.0.1:8090');
const pb = new PocketBase('http://192.168.178.57:8090');
const media = pb.collection('media').getFullList(2000, {
sort: '-created',
@ -70,4 +70,4 @@
</script>
<script src="js/slideshow.js"></script>
</html>
</html>