Fix findByOrigDest API Path

This commit is contained in:
Fred Boniface 2023-04-24 12:14:45 +01:00
parent 096a74b4bb
commit d54098562d

View File

@ -4,7 +4,7 @@ async function findByOrigDest() {
showLoading()
const formData = await fetchOrigDest()
log(`findByOrigDest: Searching for PIS Code for ${JSON.stringify(formData)}`)
const endpoint = `pis/${formData.origin}/${formData.destination}`
const endpoint = `pis/origdest/${formData.origin}/${formData.destination}`
const json = await getApi(endpoint)
if (json == false) {
await noData()