Adjust getRandom endpoint
This commit is contained in:
parent
4b47f303e9
commit
c2eb2edfd9
@ -46,7 +46,7 @@ async function findByPisCode() {
|
||||
async function findRandomCode() {
|
||||
showLoading()
|
||||
log('findRandomCode: Fetching random PIS codes')
|
||||
const endpoint = 'pis/random'
|
||||
const endpoint = 'pis/code/random'
|
||||
console.time('findRandomCode-GET')
|
||||
const json = await getApi(endpoint, auth = true)
|
||||
console.timeEnd('findRandomCode-GET')
|
||||
|
Reference in New Issue
Block a user