Calculate routes with full name stations

This commit is contained in:
Emmy D'Anello 2023-02-13 00:28:51 +01:00
parent a41ce88b5f
commit 995a320208
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@
let result_elem = document.getElementById('result')
document.getElementById('form').addEventListener('submit', () => {
result_elem.innerHTML = 'Chargement…'
fetch('/api/routes/' + day_elem.value + '/' + origin_iata_elem.value + '/' + destination_iata_elem.value + '/')
fetch('/api/routes/' + day_elem.value + '/' + origin_elem.value + '/' + destination_elem.value + '/')
.then(resp => resp.json())
.then(routes => {
console.log(routes)