hianimez-api / src /controllers /random.controller.js
S VIVEGANANDAN
fix: resolve 403 error and clean repo
5769f09
import extractRandom from "../extractors/random.extractor.js";
export const getRandom = async (req,res) => {
try {
const data = await extractRandom();
return data;
} catch (error) {
console.error("Error getting random anime:", error.message);
return e;
}
};