Landing page

This commit is contained in:
Tejas Panchal
2025-07-24 19:41:17 +05:30
parent 1c0e1cfe14
commit d502d2dbc5
161 changed files with 14116 additions and 12747 deletions

View File

@@ -0,0 +1,16 @@
import axios from "axios";
const getSearchSuggestion = async (keyword) => {
const api_url = import.meta.env.VITE_API_URL;
try {
const response = await axios.get(
`${api_url}/search/suggest?keyword=${keyword}`
);
return response.data.results;
} catch (err) {
console.error("Error fetching genre info:", err);
return err;
}
};
export default getSearchSuggestion;