Skip to content

Commit

Permalink
Merge pull request #24 from The-3Labs-Team/survey-fix-api-route
Browse files Browse the repository at this point in the history
Survey, fix api route
  • Loading branch information
murdercode authored Jan 29, 2024
2 parents 05ee74d + 649cfa8 commit c5d36a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/survey.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c5d36a1

Please sign in to comment.