Adjust getRandom endpoint

This commit is contained in:
Fred Boniface 2023-05-25 21:39:22 +01:00
parent 4b47f303e9
commit c2eb2edfd9

View File

@ -46,7 +46,7 @@ async function findByPisCode() {
async function findRandomCode() { async function findRandomCode() {
showLoading() showLoading()
log('findRandomCode: Fetching random PIS codes') log('findRandomCode: Fetching random PIS codes')
const endpoint = 'pis/random' const endpoint = 'pis/code/random'
console.time('findRandomCode-GET') console.time('findRandomCode-GET')
const json = await getApi(endpoint, auth = true) const json = await getApi(endpoint, auth = true)
console.timeEnd('findRandomCode-GET') console.timeEnd('findRandomCode-GET')