1
0
mirror of synced 2025-12-28 00:23:25 +00:00

fix(public) better structure

This commit is contained in:
Valentin
2024-06-14 10:48:27 +02:00
parent f9d50f5b2b
commit d7cdb94316
45 changed files with 252 additions and 36 deletions

View File

@@ -38,7 +38,7 @@ $lineIds = $query->fetchAll(PDO::FETCH_COLUMN);
<?php
foreach ($lineIds as $lineId) {
include 'components/homepage/line.php';
include 'line.php';
}
if (empty($lineIds)) {
@@ -55,7 +55,7 @@ function removeFavorite(stopId, lineId) {
formData.append('lineId', lineId);
formData.append('action', 'remove');
fetch('/endpoints/updateFavorite.php', {
fetch('/updateFavorite.php', {
method: 'POST',
body: formData
})