This commit is contained in:
Tejas Panchal
2025-07-24 21:38:27 +05:30
parent 9f256d4254
commit 2a449a6f00
115 changed files with 11310 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import axios from "axios";
export default async function getEpisodes(id) {
const api_url = import.meta.env.VITE_API_URL;
try {
const response = await axios.get(`${api_url}/episodes/${id}`);
return response.data.results;
} catch (error) {
console.error("Error fetching anime info:", error);
return error;
}
}