File size: 292 Bytes
5769f09
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import extractRandomId from "../extractors/randomId.extractor.js";

export const getRandomId = async (req,res) => {
  try {
    const data = await extractRandomId();
    return data;
  } catch (error) {
    console.error("Error getting random anime ID:", error.message);
    return e;
  }
};