Calculate routes with full name stations
This commit is contained in:
parent
a41ce88b5f
commit
995a320208
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue