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,14 @@
import axios from "axios";
export default async function getServers(animeId, episodeId) {
try {
const api_url = import.meta.env.VITE_API_URL;
const response = await axios.get(
`${api_url}/servers/${animeId}?ep=${episodeId}`
);
return response.data.results;
} catch (error) {
console.error(error);
return error;
}
}