fix searchEvent route
This commit is contained in:
@@ -2,7 +2,7 @@ export default async function searchEvents(query) {
|
|||||||
try {
|
try {
|
||||||
const encodedQuery = encodeURIComponent(query);
|
const encodedQuery = encodeURIComponent(query);
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`http://localhost:80/api/events/search?query=${encodedQuery}`,
|
`http://${import.meta.env.VITE_API_URL}/api/events/search?query=${encodedQuery}`,
|
||||||
{
|
{
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
|
|||||||
Reference in New Issue
Block a user