diff --git a/src/views/Presentation/Sections/PresentationSearch.vue b/src/views/Presentation/Sections/PresentationSearch.vue index 78d402a..a442194 100644 --- a/src/views/Presentation/Sections/PresentationSearch.vue +++ b/src/views/Presentation/Sections/PresentationSearch.vue @@ -9,10 +9,10 @@ const searchResultUsers = ref([]); const search = async () => { try { - const projectsResponse = await axios.get(`http://somebodyhire.me/api/projects/?search=${searchQuery.value}`); + const projectsResponse = await axios.get(`http://somebodyhire.me/api/search/projects/?search_query=${searchQuery.value}`); searchResultProjects.value = projectsResponse.data; - const usersResponse = await axios.get(`http://somebodyhire.me/api/profiles/?search=${searchQuery.value}`); + const usersResponse = await axios.get(`http://somebodyhire.me/api/search/profiles/?search_query=${searchQuery.value}`); searchResultUsers.value = usersResponse.data; } catch (error) { console.error('There was an error fetching the search results', error); @@ -30,16 +30,10 @@ const search = async () => { -
Number of results: {{ searchResultProjects.value.length }}
-Number of results: {{ searchResultUsers.value.length }}
-