From c2eb2edfd9e1fe09413acb680dc86f151f622561 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 25 May 2023 21:39:22 +0100 Subject: [PATCH] Adjust getRandom endpoint --- js/pis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/pis.js b/js/pis.js index a7efc91..004a511 100644 --- a/js/pis.js +++ b/js/pis.js @@ -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')