From 649cfa84f287a5f84ffc7df8598214cfde4b9847 Mon Sep 17 00:00:00 2001 From: Claudio-Emmolo <113107618+Claudio-Emmolo@users.noreply.github.com> Date: Mon, 29 Jan 2024 09:56:55 +0100 Subject: [PATCH] Survey, fix api route --- src/survey.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/survey.js b/src/survey.js index 7bc5b84..fb5296a 100644 --- a/src/survey.js +++ b/src/survey.js @@ -95,9 +95,9 @@ async function lastSurvey() { async function getSurveys(query = '') { try { - let url = '/api/survey' + let url = '/nova-vendor/the-3labs-team/nova-survey-package/search' if (query !== '') { - url = `/api/survey?query=${query}` + url = `/nova-vendor/the-3labs-team/nova-survey-package/search?query=${query}` } const response = await fetch(url, { method: 'GET',