Fix findByOrigDest API Path
This commit is contained in:
parent
096a74b4bb
commit
d54098562d
@ -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()
|
||||
|
Reference in New Issue
Block a user