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

@@ -46,7 +46,7 @@ function isFavorite($userId, $stopId, $lineId) {
<div class="modal-body">
<?php $stations = getStops($i); ?>
<div class="row">
<?php include 'components/navigate/stop_list.php'; ?>
<?php include 'stop_list.php'; ?>
</div>
</div>
</div>
@@ -72,7 +72,7 @@ document.addEventListener('DOMContentLoaded', function() {
var action = this.classList.contains('add-stop') ? 'add' : 'remove';
var buttonElement = this;
fetch('/endpoints/updateFavorite.php', {
fetch('/updateFavorite.php', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'