File size: 281 Bytes
5769f09
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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;
  }
};