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',